Mac OSX and OpenGL

Is OpenGL supported on Mac OSX through SDL? I grabbed the 1.1.7 source
and compiled with ./configure. Everything built and installed just fine.
I then changed into the test directory and built everything. When I run
the testgl binary, I see the following.

No OpenGL support on this system

Well, at least SDL doesn’t think there is OpenGL support. I’m guessing
that it is looking for libGL.so as most of the other UNIX systems would
have that file. There is a OpenGL framework installed by default, and
the Apple OpenGL tests do run.

Any suggestions?

Josh

Is OpenGL supported on Mac OSX through SDL? I grabbed the 1.1.7 source
and compiled with ./configure. Everything built and installed just fine.
I then changed into the test directory and built everything. When I run
the testgl binary, I see the following.

No OpenGL support on this system

Well, at least SDL doesn’t think there is OpenGL support. I’m guessing
that it is looking for libGL.so as most of the other UNIX systems would
have that file. There is a OpenGL framework installed by default, and
the Apple OpenGL tests do run.

Any suggestions?

Looks like its not compiling with -DHAVE_OPENGL. I don’t know the specifics,
but you can most likely tweak the configure.in file to fix this up. Add
"-DHAVE_OPENGL" when compiling sources, and when linking SDL use “-framework
OpenGL”.

Josh Bonczkowski wrote:

No OpenGL support on this system

I hit this problem on a Linux box. The configure script compiles an empty
program that checks for the existance of the GL/* include files. They may
not be in /usr/include on OSX. (I can’t get at my OSX box from here to
check). I’m betting that moving/placing them in a standard location will
help the compile side of things.

Whether or not it will link and run, thats another story altogether.

Rafael
dent at swcp.com