I am trying to build Fox-toolkit with opengl support in Mac OSX mountain lion (10.8). I have modified the configure file from
GL/gl.h GL/glu.h
To
OpenGL/gl.h OpenGL/glu.h
and it can find those two files during the configure. However it cannot find glx.h with none of GL/glx.h, OpenGL/glx.h and GLUT/glx.h
I have XQuartz installed with proper linking. I can see glx.h at /opt/X11/include/GL/glx.h, but the fox-toolkit ./configure cannot find it. How to solve this problem?
GLX is the OpenGL extension protocol extension for X11. While MacOS X has a X11 server, it's OpenGL support it not so good. You certainly want to use MacOS X native OpenGL framework. Which means: No GLX!
I don't know Fox toolkit very well, but it might be (somebody shed some light on this please), that it doesn't contain support for OpenGL widgets on MacOS X yet.