Message: make of example G01 throws up errors Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question make of example G01 throws up errors 

Forum: Documentation and Examples
Date: 21 Oct, 2010
From: Richard Gillham Darnley <Richard Gillham Darnley>

Hi,

I have installed (I think succesfully) geant4.9.3.p02 on my Ubuntu 10.0.4 system with the following visualization and geometry environment variables set:

G4VIS_BUILD_OPENGLX_DRIVER=1 G4VIS_BUILD_RAYTRACERX_DRIVER=1 G4VIS_BUILD_VRML_DRIVER=1 G4VIS_USE_OPENGLX=1 G4VIS_USE_RAYTRACERX=1 G4VIS_USE_VRML=1 G4LIB_BUILD_GDML=1 XERCESCROOT=/home/richard/xercesc

The configuration and build went succesfully after ensuring I had all the correct openGL and other library files.

Eventually I want to use the General Radiation Analysis Software (GRAS) for my radiation shielding work but I thought I would test my gdml/xercesc install beforehand.

I chose to start with example G01 but make threw up some errors, here is the full output from make:

>> Making dependency for file load_gdml.cc ...
>> Making dependency for file src/PrimaryGeneratorAction.cc ...
>> Making dependency for file src/PhysicsList.cc ...
>> Compiling PhysicsList.cc ...
>> Compiling PrimaryGeneratorAction.cc ...
>> Creating shared library /home/richard/g4work/tmp/Linux-
>> g++/load_gdml/libload_gdml.so ...
>> Compiling load_gdml.cc ...
>> In file included from load_gdml.cc:38:
>> /home/richard/geant4/geant4.9.3.p02/include/G4RunManager.hh: In member 
>> function ‘void G4RunManager::SetRandomNumberStoreDir(const G4String&)’:
>> /home/richard/geant4/geant4.9.3.p02/include/G4RunManager.hh:357: warning: 
>> ignoring return value of ‘int system(const char*)’, declared with attribute >> warn_unused_result
>> Using global libraries ...
>> Linking load_gdml
>> /home/richard/g4work/tmp/Linux-g++/load_gdml/exe/load_gdml.o: In function 
>> `G4VisExecutive::RegisterGraphicsSystems()':
>> load_gdml.cc:
>> (.text._ZN14G4VisExecutive23RegisterGraphicsSystemsEv[G4VisExecutive::
>> RegisterGraphicsSystems()]+0x17d): undefined reference to 
>> `G4RayTracerX::G4RayTracerX()'
>> load_gdml.cc:
>> (.text._ZN14G4VisExecutive23RegisterGraphicsSystemsEv[G4VisExecutive::
>> RegisterGraphicsSystems()]+0x19f): undefined reference to 
>> `G4VRML1::G4VRML1()'
>> load_gdml.cc:
>> (.text._ZN14G4VisExecutive23RegisterGraphicsSystemsEv[G4VisExecutive::
>> RegisterGraphicsSystems()]+0x1c1): undefined reference to 
>> `G4VRML2::G4VRML2()'
>> collect2: ld returned 1 exit status
>> make: *** [/home/richard/g4work/bin/Linux-g++/load_gdml] Error 1

Are these errors related to missing raytracer/vrml components or something to do with gdml/xercesc?

To use GRAS later, I have another question, where is the gdml/lib folder? I can find the include folder in: /home/richard/geant4/geant4.9.3.p02/source/persistency/gdml But there is no lib folder.

Thanks in advance,

Richard

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: make of example G01 throws up errors   (Geng Chao - 20 Apr, 2011)
(_ None: Re: make of example G01 throws up errors   (Nicholas Collin Paul de Gloucester - 21 Apr, 2011)
 Add Message Add Message
to: "make of example G01 throws up errors"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]