Message: Can't compile ExampleB1 (basic examples) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Can't compile ExampleB1 (basic examples) 

Forum: Documentation and Examples
Date: 27 Jun, 2012
From: jazmin schwartz <jazmin schwartz>

Hello,

I have installed gant4 9.5 on my lunx machine (Fedora R12).  Everything went well.  However, when I try to compile the basic example B1 (or any example for that matter), either using make or Cmake, I get the following error:

Making dependency for file exampleB1.cc ...
Making dependency for file src/B1SteppingAction.cc ...
Making dependency for file src/B1RunAction.cc ...
Making dependency for file src/B1PrimaryGeneratorAction.cc ...
Making dependency for file src/B1EventAction.cc ...
Making dependency for file src/B1DetectorConstruction.cc ...
Compiling B1DetectorConstruction.cc ...
Compiling B1EventAction.cc ...
Compiling B1PrimaryGeneratorAction.cc ...
Compiling B1RunAction.cc ...
Compiling B1SteppingAction.cc ...
Creating shared library /home/jazmin/geant4_workdir/tmp/Linux-g++/exampleB1/libexampleB1.so ...
Compiling exampleB1.cc ...
Using global libraries ...
Linking exampleB1
/home/jazmin/geant4.9.5/geant4.9.5-install/lib64/Geant4-9.5.1/Linux-g++/libG4physicslists.so: undefined reference to `G4QNeutronBuilder::Build()'
/home/jazmin/geant4.9.5/geant4.9.5-install/lib64/Geant4-9.5.1/Linux-g++/libG4physicslists.so: undefined reference to `G4QNeutronBuilder::G4QNeutronBuilder()'
/home/jazmin/geant4.9.5/geant4.9.5-install/lib64/Geant4-9.5.1/Linux-g++/libG4physicslists.so: undefined reference to `G4FTFPProtonBuilder::G4FTFPProtonBuilder(bool)'
collect2: ld returned 1 exit status
make: *** [/home/jazmin/geant4_workdir/bin/Linux-g++/exampleB1] Error 1



I think it's probably an environmental variable that's not set, but I can't figure out which one.

if I do env | grep G4 I get:

env | grep G4
G4INSTALL=/home/jazmin/geant4.9.5/geant4.9.5-install/share/Geant4-9.5.1/geant4make
G4INCLUDE=/home/jazmin/geant4.9.5/geant4.9.5-install/include/Geant4
G4LIB=/home/jazmin/geant4.9.5/geant4.9.5-install/lib64/Geant4-9.5.1
G4LIB_BUILD_SHARED=1
G4UI_USE_TCSH=1
G4SYSTEM=Linux-g++
G4WORKDIR=/home/jazmin/geant4_workdir
G4LIB_USE_ZLIB=1


The PATH and LD_PATH:
echo $PATH
PATH=/home/jazmin/geant4_workdir/bin/Linux-g++:/home/jazmin/geant4.9.5/geant4.9.5-install/bin:/mip/bin64:/mip/bin64:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/jazmin/bin

echo $LD_LIBRARY_PATH
LD_LIBRARY_PATH=/home/jazmin/geant4.9.5/geant4.9.5-install/lib64:/home/jazmin/geant4.9.5/geant4.9.5-install/lib64:/mip/lib64

I would appreciate any help.

Thanks
Jazmin

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

1 None: Re: Can't compile ExampleB1 (basic examples)   (Ivana Hrivnacova - 24 Jul, 2012)
 Add Message Add Message
to: "Can't compile ExampleB1 (basic examples)"

 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 ]