I've compiled Geant 4.5 with OpenGL. Now, when I try to compile any example, it complains due to missing libs. Indeed, G4OpenGL is automatically included, but none of those libraries: GLU, GL and Xmu. The fix I've found is to add those libs to LOADLIBS in architecture.gmk, line 189. There must be a better solution, since Xmu is already in X11LIBS and there seems to be an unused OGLLIBS. Maybe those have to be triggered by sth else ? PS: I'm running gcc 3.2 on RH8.0
The inclusion of OpenGL/Xm system libraries should be triggered automatically if you have the variables G4VIS_USE_OPENGLX or G4VIS_USE_OPENGLXM set in your environment when compiling your application/example. These variables should be set through the scripts generated by 'Configure' (if you used the 'Configure' script for the installation) or manually by the user (if the environment has been manually set up).