I’m trying to make lesson 10, and it’s complaining that the gl header
files can’t be found. I hardcoded one and it found the file, but the
headers within the one .h file couldn’t find the others. Is there an
entry to /etc/profile that I should make? I’ve never had this problem
before with Mesa - this particular version is the Mesa3Dfx - perhaps a
bug in the env configuration settings?
Thanks,
Mike
-------------- next part --------------
[mikev at Linux OpenGL_Tutorial]$ make
gcc -Wall -I/usr/include/ -c -o lesson10.o lesson10.c
In file included from lesson10.c:10:
/usr/X11R6/include/GL/glut.h:10: GL/gl.h: No such file or directory
/usr/X11R6/include/GL/glut.h:11: GL/glu.h: No such file or directory
lesson10.c:11: GL/gl.h: No such file or directory
lesson10.c:12: GL/glu.h: No such file or directory
make: *** [lesson10.o] Error 1
I’m trying to make lesson 10, and it’s complaining that the gl header
files can’t be found. I hardcoded one and it found the file, but the
headers within the one .h file couldn’t find the others. Is there an
entry to /etc/profile that I should make? I’ve never had this problem
before with Mesa - this particular version is the Mesa3Dfx - perhaps a
bug in the env configuration settings?
Are you having trouble with the other tutorials as well?
See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
Michael Vanecek schrieb am 28 Jun 2000:
I’m trying to make lesson 10, and it’s complaining that the gl header
files can’t be found. I hardcoded one and it found the file, but the
headers within the one .h file couldn’t find the others. Is there an
entry to /etc/profile that I should make? I’ve never had this problem
before with Mesa - this particular version is the Mesa3Dfx - perhaps a
bug in the env configuration settings?
Thanks,
Mike
[mikev at Linux OpenGL_Tutorial]$ make
gcc -Wall -I/usr/include/ -c -o lesson10.o lesson10.c
In file included from lesson10.c:10:
/usr/X11R6/include/GL/glut.h:10: GL/gl.h: No such file or directory
add -I/usr/X11R6/include to your Makefile, or symlink GL in
/usr/include, because that’s where it belongs, according to
http://oss.sgi.com/projects/ogl-sample/ABI/
- Andreas–
Check out my 3D lightcycle game: http://www.gltron.org
More than 60’000 Downloads of the latest version (0.59)
Or of course there are environment variables that can be set.
CPP_INCLUDE_PATH is the one for C++. I forget what the correct spelling
is for the c include path. C_INCLUDE_PATH perhaps?
It is in the same format as any bash PATH variable. This should keep you
from having to type -I each time until you get it ready.
DaveOn Wed, 28 Jun 2000, Andreas Umbach wrote:
Michael Vanecek schrieb am 28 Jun 2000:
I’m trying to make lesson 10, and it’s complaining that the gl header
files can’t be found. I hardcoded one and it found the file, but the
headers within the one .h file couldn’t find the others. Is there an
entry to /etc/profile that I should make? I’ve never had this problem
before with Mesa - this particular version is the Mesa3Dfx - perhaps a
bug in the env configuration settings?
Thanks,
Mike
[mikev at Linux OpenGL_Tutorial]$ make
gcc -Wall -I/usr/include/ -c -o lesson10.o lesson10.c
In file included from lesson10.c:10:
/usr/X11R6/include/GL/glut.h:10: GL/gl.h: No such file or directory
add -I/usr/X11R6/include to your Makefile, or symlink GL in
/usr/include, because that’s where it belongs, according to
http://oss.sgi.com/projects/ogl-sample/ABI/
- Andreas
–
Check out my 3D lightcycle game: http://www.gltron.org
More than 60’000 Downloads of the latest version (0.59)