Previous Thread  Next Thread

chat icon GL/gl.h GL/glu.h OS X


Posted: Mon Nov 18, 2002 7:46 pm
Joined: 14 Oct 2002
Posts: 80
When I run configure, it says no to having GL/gl.h and GL/glu.h, I do have them in X11 and in the systemframe works.
How would I point configure to:
/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h and /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glu.h

AC_CHECK_HEADER([GL/glu.h]) don't seem to be able to find them on their own.
Reply with quote


Posted: Tue Nov 19, 2002 12:06 am
Joined: 13 Oct 2002
Posts: 939
Thats wacky....
They should really be in a GL subdir.

You can do one of the following and or a combo:
make a GL inside of your normal include path And create links to
the GL headers inside of it.

setenv CFLAGS "-I/usr/local/include/GL" (or where ever you made the dir)

and or Edit the includes so it just includes gl.h instead of GL/gl.h etc...

Reply with quote


Posted: Tue Nov 19, 2002 6:07 am
Joined: 14 Oct 2002
Posts: 80
I tried using just gl.h and glu.h but it still didn't find them so I added to,

with the results:
checking for gl.h... no
checking for glu.h... no
checking for /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h... yes
checking for /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glu.h... yes

Yes it is wacky, but it's how Apple has done it. Kind of like the different Linux distros changing things around a little to suit themselves.
Thats one of the things that make, making a crossplatform easy compiling distro so challanging.
Reply with quote

Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group