[Plib-users] patch for building on OSX
Brought to you by:
sjbaker
From: Reed H. <re...@ze...> - 2001-12-31 18:49:31
|
Attached is a patch for building on OSX, against a CVS checkout from yesterday... I hope it still works. Let me know if it doesn't & i'll remake it for a new co. (it can be applied from the root plib CVS directory with -p1) I did not work on js, sl or net at all [maybe put a note about that in README.mac?], but AFAIK all of sg, ul, ssg and ssgAux work, and most of fnt and pui -- there is one segfault in FilePicker that I need to track down. configure.in detects a host type matching *-apple-darwin* and uses a new LIBS line for the OpenGL and GLUT frameworks, like it looks like it does for Win32 (cygwin). It also checks for OpenGL/gl.h and GLUT/glut.h headers and adds MACOSX_OPENGL and MACOSX_GLUT defines respectively. Various source files then have "#ifdef" lines to check for those symbols, in the libs (except js, sl and net) and some of the stuff in examples/. The two glIsValidContext() functions also use MACOSX_OPENGL to work around broken AGL on OSX -- this function will always return true. There might be a way to call the Objective-C method that ought to work, If i get it working i'll let y'all know. have a safe and fun New Year's reed |