I am currently teaching an undergraduate course on free game
development. I wanted all the projects to be totally portable, so I
chose SDL/OpenGL to be the target platform. There have been a few
"hiccups", but only one major problem. While sdl-config can make sure a
single makefile can compile SDL apps on any of the platforms we use, and
SDL_opengl.h makes the code able to be completely portable, it does
nothing to help with linking the OpenGL libraries. In most systems this
would be -lGL and -lGLU, but in Windows this is -lopengl32 and -lglu32,
while in MacOS-X this is -framework OpenGL, etc…
Is there a standard way to handle this? If not, is there any reason
sdl-config can’t get something like “–libs-gl” and "–libs-glu"
options? That way each Makefile could just use sdl-config --libs-glu
and no separate rules will be needed for different platforms.
What do you all think about this? Is there a better way I am missing?–
Steaphan Greene
GPG public key: http://www.cs.binghamton.edu/~sgreene/gpg.key.txt
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050331/9e17a2f9/attachment.pgp