[Gate-users] CLHEP - Link Error

PmB peter.bloomfield at camhpet.ca
Fri Sep 26 22:16:15 CEST 2014


Fellow Gaters,

I have managed to fix this by the following
     ln -s /home/peter/Src/GATE/CLHEP/Install/lib64 
/home/peter/Src/GATE/CLHEP/Install/lib
and then making the following change to the ccmake option,
     CLHEP_LIBRARY /home/peter/Src/GATE/CLHEP/Install/lib
and it compiles.

Cheers

Peter


On 09/26/2014 03:52 PM, PmB wrote:
> Fellow Gaters,
>
> I am sure I have hit this problem previously, and I can't for the life 
> of me recall how to correct it.
>
> I am trying to compile Gate V7.0 and all goes well until linking; I 
> get the following error
>
> [100%] Building CXX object 
> CMakeFiles/Gate.dir/source/externals/clhep/src/CLHEP/Matrix/Matrix.cc.o
> [100%] Building CXX object 
> CMakeFiles/Gate.dir/source/externals/clhep/src/CLHEP/RandomObjects/RandomVector.cc.o
> [100%] Building CXX object 
> CMakeFiles/Gate.dir/source/externals/clhep/src/CLHEP/RandomObjects/RandMultiGauss.cc.o
> Linking CXX executable Gate
> /usr/bin/ld: cannot find -lCLHEP-2.1.3.1
> collect2: ld returned 1 exit status
> make[2]: *** [Gate] Error 1
> make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
> make: *** [all] Error 2
>
> I have defined the following in ccmake
>
>  CLHEP_CONFIG_EXECUTABLE 
> /home/peter/Src/GATE/CLHEP/Install/bin/clhep-config
>  CLHEP_INCLUDE_DIR /home/peter/Src/GATE/CLHEP/Install/include
>  CLHEP_LIBRARY 
> /home/peter/Src/GATE/CLHEP/Install/lib64/libCLHEP-2.1.3.1.so
>
> for CLHEP.
>
> Any thoughts will be most appreciated, cheers
>
> Peter
>
>
>

-- 
Peter M. Bloomfield
Physicist,
PET Centre,
Centre for Addiction and Mental Health,
250 College St.,
Toronto, Ontario,
Canada M5T 1R8
Tel: 416 535 8501 Ext. 34243

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140926/d036e91a/attachment.html>


More information about the Gate-users mailing list