rbha311
December 16th, 2008, 08:30 PM
Hi,
I am trying to use openGL libraries with VC++ but i have no idea as to how I should install it, the guides on the openGL website are quite confusing too. It'd be great if someone could help me out with this. I did download the GLUT3.7 directory and after reading the instructions in the readme file I was confused when it described the instructions for VC++. It mentioned specifying the location of the vc++ compiler in the glutwin32.mak file, I do know the location of the compiler but am not sure of as to where to make the change. I'll cut and paste the part of the readme file which mentions the changes that need to be made and the glutwin32.mak file.
-----------------------------------------------------------------------------------------------------------------
MICROSOFT WINDOWS 95 and NT BUILD INSTRUCTIONS: <-- IMPOARTANT!
Read the "README.win" accompanying file. The short instructions if you
have Microsoft's Visual C++ compiler is to run the "glutmake" batch
file. You may need to edit "glutwin32.mak" to indicate your compiler
location.
-----------------------------------------------------------------------------------------------------------------
# Be sure to modify the definitions in this file to agree with your
# systems installation.
# NOTE: be sure that the install directories use '\' not '/' for paths.
# MSVC install directories
LIBINSTALL = \msdev\lib
INCLUDEINSTALL = \msdev\include\GL
# Win95 dll directory
#DLLINSTALL = \windows\system
# WinNT dll directory
DLLINSTALL = \winnt\system32
# Microsoft OpenGL libraries
#
GLU = glu32.lib
OPENGL = opengl32.lib
GLUT = $(TOP)/lib/glut/glut32.lib
GLUTLIB = glut32.lib
GLUTDLL = glut32.dll
# SGI OpenGL for Windows libraries (formerly Cosmo OpenGL)
# >> To use, uncomment lines below and comment out the similiar
# >> lines above. You can download SGI OpenGL for Windows for
# >> free from http://www.meer.net/~gold/OpenGL/opengl2.exe
#
#GLU = \oglsdk\lib\glu.lib
#OPENGL = \oglsdk\lib\opengl.lib
#GLUT = $(TOP)/lib/glut/glut.lib
#GLUTLIB = glut.lib
#GLUTDLL = glut.dll
# The Micro UI lib
MUI = $(TOP)/lib/mui/mui.lib
# The OpenGL Extrusion and Tubing lib
GLE = $(TOP)/lib/gle/gle.lib
# The OpenGL Sphere Mapping lib
GLSMAP = $(TOP)/lib/glsmap/glsmap.lib
# common definitions used by all makefiles
CFLAGS = $(cflags) $(cdebug) $(EXTRACFLAGS) -DWIN32 -I$(TOP)/include
LIBS = $(lflags) $(ldebug) $(EXTRALIBS) $(GLUT) $(GLU) $(OPENGL) $(guilibs)
EXES = $(SRCS:.c=.exe) $(CPPSRCS:.cpp=.exe)
!IFNDEF NODEBUG
lcommon = /NODEFAULTLIB /INCREMENTAL:NO /DEBUG /NOLOGO
!ENDIF
# default rule
default : $(EXES)
# cleanup rules
clean ::
@del /f *.obj
@del /f *.pdb
@del /f *.ilk
@del /f *.ncb
@del /f *~
@del /f *.exp
clobber :: clean
@del /f *.exe
@del /f *.dll
@del /f *.lib
-@del /f $(LDIRT)
# inference rules
$(EXES) : $*.obj $(DEPLIBS)
echo $@
$(link) -out:$@ $** $(LIBS)
.c.obj :
$(CC) $(CFLAGS) $<
.cpp.obj :
$(CC) $(CFLAGS) $<
------------------------------------------------------------------------------------------------------------------
Thanks guys.
I am trying to use openGL libraries with VC++ but i have no idea as to how I should install it, the guides on the openGL website are quite confusing too. It'd be great if someone could help me out with this. I did download the GLUT3.7 directory and after reading the instructions in the readme file I was confused when it described the instructions for VC++. It mentioned specifying the location of the vc++ compiler in the glutwin32.mak file, I do know the location of the compiler but am not sure of as to where to make the change. I'll cut and paste the part of the readme file which mentions the changes that need to be made and the glutwin32.mak file.
-----------------------------------------------------------------------------------------------------------------
MICROSOFT WINDOWS 95 and NT BUILD INSTRUCTIONS: <-- IMPOARTANT!
Read the "README.win" accompanying file. The short instructions if you
have Microsoft's Visual C++ compiler is to run the "glutmake" batch
file. You may need to edit "glutwin32.mak" to indicate your compiler
location.
-----------------------------------------------------------------------------------------------------------------
# Be sure to modify the definitions in this file to agree with your
# systems installation.
# NOTE: be sure that the install directories use '\' not '/' for paths.
# MSVC install directories
LIBINSTALL = \msdev\lib
INCLUDEINSTALL = \msdev\include\GL
# Win95 dll directory
#DLLINSTALL = \windows\system
# WinNT dll directory
DLLINSTALL = \winnt\system32
# Microsoft OpenGL libraries
#
GLU = glu32.lib
OPENGL = opengl32.lib
GLUT = $(TOP)/lib/glut/glut32.lib
GLUTLIB = glut32.lib
GLUTDLL = glut32.dll
# SGI OpenGL for Windows libraries (formerly Cosmo OpenGL)
# >> To use, uncomment lines below and comment out the similiar
# >> lines above. You can download SGI OpenGL for Windows for
# >> free from http://www.meer.net/~gold/OpenGL/opengl2.exe
#
#GLU = \oglsdk\lib\glu.lib
#OPENGL = \oglsdk\lib\opengl.lib
#GLUT = $(TOP)/lib/glut/glut.lib
#GLUTLIB = glut.lib
#GLUTDLL = glut.dll
# The Micro UI lib
MUI = $(TOP)/lib/mui/mui.lib
# The OpenGL Extrusion and Tubing lib
GLE = $(TOP)/lib/gle/gle.lib
# The OpenGL Sphere Mapping lib
GLSMAP = $(TOP)/lib/glsmap/glsmap.lib
# common definitions used by all makefiles
CFLAGS = $(cflags) $(cdebug) $(EXTRACFLAGS) -DWIN32 -I$(TOP)/include
LIBS = $(lflags) $(ldebug) $(EXTRALIBS) $(GLUT) $(GLU) $(OPENGL) $(guilibs)
EXES = $(SRCS:.c=.exe) $(CPPSRCS:.cpp=.exe)
!IFNDEF NODEBUG
lcommon = /NODEFAULTLIB /INCREMENTAL:NO /DEBUG /NOLOGO
!ENDIF
# default rule
default : $(EXES)
# cleanup rules
clean ::
@del /f *.obj
@del /f *.pdb
@del /f *.ilk
@del /f *.ncb
@del /f *~
@del /f *.exp
clobber :: clean
@del /f *.exe
@del /f *.dll
@del /f *.lib
-@del /f $(LDIRT)
# inference rules
$(EXES) : $*.obj $(DEPLIBS)
echo $@
$(link) -out:$@ $** $(LIBS)
.c.obj :
$(CC) $(CFLAGS) $<
.cpp.obj :
$(CC) $(CFLAGS) $<
------------------------------------------------------------------------------------------------------------------
Thanks guys.