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

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

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

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

Postby 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/gl.h])
AC_CHECK_HEADER([GL/glu.h]) don't seem to be able to find them on their own.

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

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

Kent

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

Postby 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, configure.ac:
AC_CHECK_HEADER([/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h])
AC_CHECK_HEADER([/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glu.h])

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.


Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 0 guests