On Feb 7, 2007, at 11:34 AM, Alexander Hansen wrote:
Is there an easy way to make it use the system's?  We do have a couple
of SDL games in the distro that use x11's OpenGL but don't require it
for display purposes.

Unfortunately, most packages that use OpenGL do this:

#include <GL/gl.h>

And Apple's headers aren't in a dir named 'GL'. Usually I just end up doing 'ln -s /System/Library/Frameworks/OpenGL.framework/Headers ./ GL' to make the package find the includes. For linking it's usually best to just patch the Makefile, though I guess you could also do a similar symlink trick.

Long-term, it would be nice to have a good solution that we can send to upstreams. There already exist a bunch of sorta-Mac-compatible m4 files for autotools, such as this one: http:// xmoto.cvs.sourceforge.net/xmoto/xmoto/config/ax_check_gl.m4? revision=1.1&view=markup

Maybe modify it so it defines GL_HEADER_DIR, and then source files could use this?

#include <GL_HEADER_DIR/gl.h>

Dave

Attachment: PGP.sig
Description: This is a digitally signed message part

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to