Problem 804

Summary: Can't compile example
Product: Examples/Extended Reporter: jaztango
Component: persistency/P01,P02Assignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED WORKSFORME    
Severity: major    
Priority: P2    
Version: 7.1   
Hardware: PC   
OS: Linux   

Description jaztango 2005-10-18 16:23:01 CEST
I am trying to compile this example and get errors of the following type:

Linking G4PersEx01 ...
/geant/geant4.7.1/examples/extended/persistency/rootio//tmp/Linux-g++/G4PersEx01/G4PersEx01.o(.text+0x19):
In function `G4VisExecutive::G4VisExecutive[not-in-charge]()':
: undefined reference to `G4VisManager::G4VisManager[not-in-charge]()'
/geant/geant4.7.1/examples/extended/persistency/rootio//tmp/Linux-g++/G4PersEx01/G4PersEx01.o(.text+0x4d):
In function `G4VisExecutive::G4VisExecutive[in-charge]()':
: undefined reference to `G4VisManager::G4VisManager[not-in-charge]()'
/geant/geant4.7.1/examples/extended/persistency/rootio//tmp/Linux-g++/G4PersEx01/G4PersEx01.o(.text+0x95):
In function `G4VisExecutive::RegisterGraphicsSystems()':
: undefined reference to `G4ASCIITree::G4ASCIITree[in-charge]()'


Any ideas?

Thanks
Jazmin
Comment 1 Gabriele Cosmo 2005-10-19 03:01:59 CEST
If you strictly follow the instructions in
  examples/extended/persistency/PersEx01/README
you should be able to build the example with no troubles.
It seems to me that your problem is due to a wrong setup for the visualization
drivers. Did you build the Geant4 libraries using any of the graphics drivers ?
If so, you should have set in your environment the corresponding G4VIS_BUILD_xxx
variables when building the libraries and corresponding G4VIS_USE_xxxx when
building your examples.
Another possibility is that you're linking against incompatible libraries (i.e.
libraries built in another system different from yours).
I would suggest to verify your setup by building first a simpler example, like
those distributed in the examples/novice directory.