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?
After long search and try, finally I have found the solution to this problem at sourceforge
According to Anders F Björklund (many thanks to him) in the post above-
For 10.7 Lion and beyond, the commands are-
CXXCPP="g++ -E" CXX="g++ -arch i386 -arch x86_64" CPPFLAGS="-I/usr/X11/include -I/usr/X11/include/freetype2" LDFLAGS="-L/usr/X11/lib" ./configure --with-x --with-xft --with-opengl --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib make make install