Message: Am I missing a reference to an EXTRALIBS file? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Am I missing a reference to an EXTRALIBS file? 

Forum: Physics List
Date: 16 Jan, 2004
From: Jeff <jdejong@phys.ualberta.ca>

I'm hoping someone out there can help me. I've managed to compile GEANT
 4.5.2 and it seems to run fine on my machine. I am currently working 
on trying to get spallation to run so I went and installed the QGSP 
package and the PACKAGING package. These two compile fine.

Now I try to incorporate these two libraries into an example program, I'm currently using a modified version of examples/novice/N03. To encorporate the new physics I had to include the following lines in my GNUmakefile :

-------------------------------------------------------------

# EXTRALIBS += -lSHOGUN
# EXTRALIBS += -lFTFC   
# EXTRALIBS += -lFTFP   
# EXTRALIBS += -lLBE
#  EXTRALIBS += -lLHEP   
# EXTRALIBS += -lLHEP_GN 
# EXTRALIBS += -lLHEP_HP
# EXTRALIBS += -lLHEP_LEAD
# EXTRALIBS += -lLHEP_LEAD_HP
# EXTRALIBS += -lLHEP_PRECO
# EXTRALIBS += -lQGSP_Model
#  EXTRALIBS += -lQGSP_BERT  
# EXTRALIBS += -lLHEP_PRECO_HP
# EXTRALIBS += -lQGSC
# EXTRALIBS += -lQGSC_LEAD
# EXTRALIBS += -lQGSC_LEAD_HP

#  EXTRALIBS += -lNew
  EXTRALIBS += -lQGSP

# EXTRALIBS += -lQGSP_GN
# EXTRALIBS += -lQGSP_HP
# EXTRALIBS += -lLHEP_BERT
# EXTRALIBS += -lLHEP_BIC
# EXTRALIBS += -lQGSP_BIC

 EXTRALIBS += -lPackaging

 EXTRALIBS += -lG4hadronic_proc
 EXTRALIBS += -lG4hadronic_HE
 EXTRALIBS += -lG4hadronic_LE
 EXTRALIBS += -lG4hadronic_iso
 EXTRALIBS += -lG4hadronic_neu
 EXTRALIBS += -lG4hadronic_coherent_elastic
 EXTRALIBS += -lG4hadronic_hetcpp_evaporation
 EXTRALIBS += -lG4hadronic_hetcpp_utils
 EXTRALIBS += -lG4hadronic_bert_cascade
 EXTRALIBS += -lG4hadronic_interface_ci
 EXTRALIBS += -lG4hadronic_body_ci
 EXTRALIBS += -lG4hadronic_leading_particle
 EXTRALIBS += -lG4hadronic_stop
 EXTRALIBS += -lG4hadronic_radioactivedecay

 EXTRALIBS += -lG4hadronic_HE_gen
 EXTRALIBS += -lG4hadronic_qgstring
 EXTRALIBS += -lG4hadronic_diffstring
 EXTRALIBS += -lG4hadronic_stringfrag
 EXTRALIBS += -lG4hadronic_string_common

 EXTRALIBS += -lG4hadronic_kinetic
 EXTRALIBS += -lG4hadronic_scattering
 EXTRALIBS += -lG4hadronic_preequ
 EXTRALIBS += -lG4hadronic_deex

 EXTRALIBS += -lG4hadronic_man_gen
 EXTRALIBS += -lG4hadronic_util_gen

 EXTRALIBS += -lG4hadronic_mgt
 EXTRALIBS += -lG4hadronic_xsect
 EXTRALIBS += -lG4hadronic_util   

 EXTRALIBS += -lG4shortlived   

CPPFLAGS += -I$(LISTS_BASE)/lists/Packaging/include CPPFLAGS += -I$(LISTS_BASE)/lists/QGSP/include

---------------------------------

Now when I first tried to install it I only ucommented the EXTRALIBS lines which referenced -lQGSP and -lPackaging. This lead to an extremely large # of errors. I was then informed that these two files and dependance on other libraries. So I uncommented until I uncommented my hadronic libraries (when I try to uncomment the other libraries at the beginning of the list those libraries are not found). But not I have a finite error list that looks like :

Using granular libraries ...
Linking exampleN03 ...
/shift/shd03/jdejong/geant/geant4.5.2.p02/lib/Linux-g++/libG4hadronic_radioactivedecay.so: 
undefined reference to `G4AtomicDeexcitation::GenerateParticles(int, int)'
/shift/shd03/jdejong/geant/geant4.5.2.p02/lib/Linux-g++/libG4hadronic_radioactivedecay.so: 
undefined reference to `G4AtomicDeexcitation::~G4AtomicDeexcitation(void)'
/shift/shd03/jdejong/geant/geant4.5.2.p02/lib/Linux-g++/libG4hadronic_radioactivedecay.so: 
undefined reference to 
`G4AtomicDeexcitation::ActivateAugerElectronProduction(bool)'
/shift/shd03/jdejong/geant/geant4.5.2.p02/lib/Linux-g++/libG4hadronic_radioactivedecay.so: 
undefined reference to `G4AtomicDeexcitation::G4AtomicDeexcitation(void)'
collect2: ld returned 1 exit status
gmake: *** 
[/shift/shd03/jdejong/geant/geant4.5.2.p02/bin/Linux-g++/exampleN03] Error 
1
--------------------------------------------------------------
Everything above seems to indicate I am only missing the library where 
G4AtomicDeexcitation is stored. Yet when I uncomment out any of the 
other libraries (which I havent already uncommented) I get a library
 not found. Which I am assuming to mean it needs to be installed. I've 
tried looking in the tree for a file resembling the routine name needed
 but nothing really matches. Is there an EXTRALIB library that I'm 
missing?

So close, yet so far. Any help is appreciated

Cheers,

Jeff

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

1 None: Re: Am I missing a reference to an EXTRALIBS file?   (Wellisch, J.P. - 23 Jan, 2004)
 Add Message Add Message
to: "Am I missing a reference to an EXTRALIBS file?"

 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 ]