Alexander Hansen wrote: > Alexander Hansen wrote: >> Following up: I get an identical error. (10.5.2/PowerPC with >> X11-2.2.1). >> I'm not sure about the next step. Probably arb needs to be modified >> either to use mesa or freeglut. >> > <snip> > > In case people are looking at this thread, I've posted a .deb that I > built on 10.5 before whichever unofficial or official update leads to > the OpenGL unhappiness: > > "/usr/X11R6/include/GL/glut.h:538: error: expected initializer before > 'glutInit'" > > The .deb is under > > http://akhmac.blogdns.net/~hansen/finkdebs/ > > > and if you have any problems with it, it's "unofficial".
The standard "unofficial" bindist in Tokyo has it, too. The problem comes from the macosforge X11 update. They have now glut stuff inside, which interferes with Fink's freeglut. (I guess that's - along with cairo, libpng, a lot of .pc files and other unwanted stuff - a compensation for ripping out xmkmf and libGLw ;-) ). The arb package must make sure that it does not include X11's glut.h when it finds it. I was successful by simple changing in the CompileScript the line LIBPATH="-L%b/LIBLINK -L%p/lib" XINCLUDES="-I/usr/X11R6/include -I%p/include/" to LIBPATH="-L%b/LIBLINK -L%p/lib" XINCLUDES="-I%p/include -I/usr/X11R6/include" I am not committing this, because I didn't really follow the discussion and don't know whether this has side effects on other OS versions. The mesa-libglw dependency should be added, too, if someone wants to make this build correctly on Leopard/xquartz. -- Martin ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
