Problem 459 - compilation problem for examples with OpenGL
Summary: compilation problem for examples with OpenGL
Status: RESOLVED WORKSFORME
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: other
Hardware: PC Linux
: P2 minor
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2003-02-21 05:58 CET by christophe.delaere
Modified: 2003-02-21 08:23 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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).