Problem 279 - linker cant find CLHEP libraries, but they are in place
Summary: linker cant find CLHEP libraries, but they are in place
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 3.2
Hardware: Sun Solaris
: P2 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2001-07-25 12:37 CEST by slater
Modified: 2007-04-08 18:34 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description slater 2001-07-25 12:37:46 CEST
hepsun17> cd ../N03
hepsun17> gmake
Making dependency for file exampleN03.cc...
Making dependency for file src/ExN03VisManager.cc ...
Making dependency for file src/ExN03SteppingVerbose.cc ...
Making dependency for file src/ExN03SteppingAction.cc ...
Making dependency for file src/ExN03RunAction.cc ...
Making dependency for file src/ExN03PrimaryGeneratorMessenger.cc ...
Making dependency for file src/ExN03PrimaryGeneratorAction.cc ...
Making dependency for file src/ExN03PhysicsList.cc ...
Making dependency for file src/ExN03EventActionMessenger.cc ...
Making dependency for file src/ExN03EventAction.cc ...
Making dependency for file src/ExN03DetectorMessenger.cc ...
Making dependency for file src/ExN03DetectorConstruction.cc ...
Making dependency for file src/ExN03CalorimeterSD.cc ...
Making dependency for file src/ExN03CalorHit.cc ...
Compiling ExN03CalorHit.cc ...
Compiling ExN03CalorimeterSD.cc ...
Compiling ExN03DetectorConstruction.cc ...
Compiling ExN03DetectorMessenger.cc ...
Compiling ExN03EventAction.cc ...
Compiling ExN03EventActionMessenger.cc ...
Compiling ExN03PhysicsList.cc ...
Compiling ExN03PrimaryGeneratorAction.cc ...
Compiling ExN03PrimaryGeneratorMessenger.cc ...
Compiling ExN03RunAction.cc ...
Compiling ExN03SteppingAction.cc ...
Compiling ExN03SteppingVerbose.cc ...
Compiling ExN03VisManager.cc ...
Creating/replacing object files in
/usr/hep0/slater/cern01/3/geant4/tmp/SUN-CC5/exampleN03/libexampleN03.a
Compiling exampleN03.cc ...
Using granular libraries ...
Linking exampleN03 ...
ld: fatal: library -l/usr/hep0/slater/cern01/2/CLHEP/libCLHEP-CC.a: not found
ld: fatal: File processing errors. No output written to
/usr/hep0/slater/cern01/3/geant4/bin/SUN-CC5/exampleN03
gmake: *** [/usr/hep0/slater/cern01/3/geant4/bin/SUN-CC5/exampleN03] Error 1
hepsun17> ls -l /usr/hep0/slater/cern01/2/CLHEP/libCLHEP-CC.a
-rw-r--r--   1 slater     897988 Jul 19 10:32
/usr/hep0/slater/cern01/2/CLHEP/libCLHEP-CC.a
Comment 1 Gabriele Cosmo 2001-08-02 03:04:59 CEST
You most problably have a non-standard installation of CLHEP in your system.
Geant4 assumes the following setup:

  CLHEP_BASE_DIR    = <your-CLHEP-path>
  CLHEP_INCLUDE_DIR = $CLHEP_BASE_DIR/include
  CLHEP_LIB_DIR     = $CLHEP_BASE_DIR/lib      <-- check this!
  CLHEP_LIB         = CLHEP                    <-- here you have 'CLHEP-CC'

In case of non-standard setup, you should override those environment
variables, according to the installation in your system.