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

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Posts: 80
Joined: Mon Oct 14, 2002 4:18 am

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

Post by VelikM » Mon Nov 18, 2002 7:46 pm

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.

Posts: 233
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)

Post by SirDude » Tue Nov 19, 2002 12:06 am

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...


Posts: 80
Joined: Mon Oct 14, 2002 4:18 am

Post by VelikM » Tue Nov 19, 2002 6:07 am

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.

Post Reply