Re: Another Follow up (Re: OpenGL Headers and libraries under X11)
Re: Another Follow up (Re: OpenGL Headers and libraries under X11)
- Subject: Re: Another Follow up (Re: OpenGL Headers and libraries under X11)
- From: Kurt Zimmerman <email@hidden>
- Date: Fri, 16 Jan 2004 09:43:56 -0800
Apple said "this issue does not originate with APPLE-TECHNOLOGY".
That is true, but it doesn't seem to be helpful. It looks to me like
Apple offers an OpenGL that includes quite a few useful extensions.
The problem is that the necessary OpenGL headers are split across two
directories and that you need to get the right version of each
header. I believe a helpful answer would be:
1) Modify your makefile or build system so it first searches for
headers in /System/Library/Frameworks/OpenGL.framework/Headers/. This
will make sure you get the "good" gl.h and glext.h.
2) Put /usr/X11R6/include/GL second on your search path so that you
can find glx.h.
I haven't tried this myself, but it is very similar to the approach I
need to take on Linux systems. I hope this proves helpful.
Unfortunately, what you suggested will probably not work. You
typically can't mix and match the OpenGL framework headers and GLX
libraries. You should pick one API and stick with it. Currently, GLX
happens to support less then native OpenGL does. Using other solutions
such as GLEW are probably the best way to go if you need to stick with
X11.
--Torrey
To be clear, It WON'T work, for the reasons Torrey suggests. You won't
even get it to compile as there are no GLX definitions in Apples libraries.
Kurt
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.