Stefan Evert wrote: > On 19 Nov 2009, at 17:19, Chris Marshall wrote: > >> Here is a page with some explanation. Try checking if >> GLUT is in the indicated framework location. Then try >> using the include formulation for glut.h that they suggest. >> If you get it working with something different, let us know >> as the problem may be that things build ok with X11 >> installed but we want it to build with no X11 if possible. >> >> Thanks, >> Chris >> >> http://agora.cs.illinois.edu/display/cs418fa09/Getting+OpenGL+Running+on+Mac+OS+X > > Hm, strange. Are you sure this works outside Xcode? Because I can't > find a file .../GLUT/glut.h anywhere on my system. I suspect that > Xcode handles such includes from frameworks in a special way. I'm not > sure if this can be replicated with the command-line gcc compiler, > though.
As far as I know (a non-Mac user/owner), Xcode is the default development environment for Mac OS X. My understanding is that they have hooks in the compiler to look in the right places for things. If you just use <GLUT/glut.h> and <OpenGL/gl.h>... can you get glversion.c to compile? > Do I understand correctly that we still don't know (i) whether the > OpenGL module builds without X11 installed and (ii) whether X11 is a > default component of recent Mac OS X versions? Not without testing on actual Mac systems. I've now heard two versions of the X11 issue. Regardless, since our build already works with X11 and FreeGLUT, the issue is building with Apple GLUT. As far as I know it does not need X11 so the framework include should be enough. Were there no *.h file in the GLUT or OpenGL framework directories? > It seems that Antonio did have X11, but something was broken with the > install which he has now fixed. Maybe. My hypothesis is that there is a glut.h in GLUT framework and a gl.h and glu.h in OpenGL that could be used to build POGL. As usual, the starting point would be to build glversion without any X11 in the paths. Once that is done, we transfer the settings to the entire POGL build for Mac OS X. --Chris _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
