Problem 459

Summary: compilation problem for examples with OpenGL
Product: Geant4 Reporter: christophe.delaere
Component: configAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: P2    
Version: other   
Hardware: PC   
OS: Linux   

Description christophe.delaere 2003-02-21 05:58:23 CET
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
Comment 1 Gabriele Cosmo 2003-02-21 08:23:59 CET
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).