[Gate-users] Problem in Running GATE7.0
Antoine Dufaure
andufaure at gmail.com
Wed Jun 11 14:25:04 CEST 2014
Dear Ba Es,
I think you should use an external CLHEP, and link both Geant4 and Gate to
the same version.
Build your own CLHEP 2.1.1.0 :
wget clhep-2.1.1.0.tar.gz (GO HERE :
http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/)
tar xvzf clhep-2.1.1.0.tar.gz
cd 2.1.1.0
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX="/path/to/new/clhep/install" ../CLHEP
make (-j 4)
make install
=> then while compiling Geant4 give it the right flags (cmake)
(-DCLHEP_LIBRARY for example :
-DCLHEP_LIBRARY="/path/to/new/clhep/install/lib/libCLHEP-2.1.1.0.so")
=> once G4 is built, you must build Gate and, @ cmake time, you must link
Gate (with -D options or ccmake) with the right version of Geant4 and with
the right version of CLHEP (you've compiled before)
Gate requires CLHEP
Geant4 requires CLHEP
Gate requires Geant4
so be sure to use an external CLHEP build, then, at compile time link G4 &
Gate to the same CLHEP library
be sure to use export LD_LIBRARY_PATH="/path/to/my/new/clhep/lib" while
compiling G4
and be sure to use export
LD_LIBRARY_PATH="/path/to/my/new/clhep/lib:/path/to/my/new/geant4/lib"
while compiling Gate
For Gate 7.0, use G4 9.6.3 and CLHEP 2.1.2.3 or CLHEP 2.1.3.1 but use the
same version for Gate and G4
Best regards,
--
AD
2014-06-11 14:13 GMT+02:00 Ba Es <begate at ymail.com>:
> Dear Antoine,
> Thanks for your reply,
> I have not installed CLHEP and I want to use built-in CLHEP of GEANT4. I
> search my computer to find libCLHEP-2.1.1.0.so
> <http://libclhep-2.1.1.0.so/>, but cannot found it!
> do I install CLHEP first?
>
>
>
> On Wednesday, June 11, 2014 4:25 PM, Antoine Dufaure <
> andufaure at gmail.com> wrote:
>
>
> Dear Ba Es,
>
>
>
> try to locate the valid CLHEP .so library on your system :
>
> $ locate libCLHEP-2.1.1.0.so <http://libclhep-2.1.1.0.so/>
>
> for example on my system, it returns :
>
> /data/dufaure/install/clhep/2.1.1.0/install/lib/libCLHEP-2.1.1.0.so
>
> then set LD_LIBRARY_PATH to point to the good location, here is what I can
> type :
>
> $ export LD_LIBRARY_PATH=/data/dufaure/install/clhep/
> 2.1.1.0/install/lib:$LD_LIBRARY_PATH
>
> then retry to build...
>
>
>
> Best regards,
>
> --
> AD
>
>
>
>
>
> 2014-06-11 13:37 GMT+02:00 Ba Es <begate at ymail.com>:
>
> Dear Gate User,
> Hello
> I install GATE7.0 in Ubuntu 12.04 with internal CLHEP in GEANT4.
> For running GATE7.0, I write this command in termainal:
>
> source /opt/GATE/GATE7.0/root_v5.34.18/bin/thisroot.sh
> source /opt/GATE/GATE7.0/geant4.9.6.p03-install/bin/geant4.sh
> export PATH=$PATH:/opt/GATE/GATE7.0/gate_v7.0-install/bin
> Gate
>
> but this error appear:
> Gate: error while loading shared libraries: libCLHEP-2.1.1.0.so
> <http://libclhep-2.1.1.0.so/>: cannot open shared object file: No such
> file or directory
>
> I install GATE7.0 in "/opt/GATE/GATE7.0" directory and according to wiki,
> my configuration for installation of GEANT4 when typing "ccmake
> ../geant4.9.6.p03" is:
>
> CMAKE_BUILD_TYPE *Release
>
> CMAKE_INSTALL_PREFIX */opt/GATE/GATE7.0/geant4.9.6.p03-install
>
> GEANT4_INSTALL_DATA *OFF
> GEANT4_INSTALL_DATADIR */usr/local/share/Geant4-9.6.3/data
> GEANT4_USE_G3TOG4 *OFF
>
> GEANT4_USE_GDML *OFF
>
>
> GEANT4_USE_INVENTOR *OFF
> GEANT4_USE_OPENGL_X11 *ON
>
> GEANT4_USE_QT *ON
>
> GEANT4_USE_RAYTRACER_X11 *OFF
>
> GEANT4_USE_SYSTEM_CLHEP *OFF
> GEANT4_USE_SYSTEM_EXPAT *ON
>
> GEANT4_USE_XM *OFF
>
> and my configuration for installation of GATE7.0 when typing "ccmake
> ../gate_v7.0" is:
> CMAKE_BACKWARDS_COMPATIBILITY *2.4
>
> CMAKE_BUILD_TYPE *Release
>
> CMAKE_INSTALL_PREFIX */opt/GATE/GATE7.0/gate_v7.0-install
>
> EXECUTABLE_OUTPUT_PATH *
>
> GATE_ANALYSIS_USE_FILE *ON
>
> GATE_ANALYSIS_USE_GENERAL *ON
>
> GATE_DOWNLOAD_BENCHMARKS_DATA *OFF
> GATE_DOWNLOAD_EXAMPLES_DATA *OFF
> GATE_USE_ECAT7 *OFF
> GATE_USE_GEANT4_UIVIS *ON
>
> GATE_USE_GPU *OFF
>
> GATE_USE_LMF *OFF
> GATE_USE_OPTICAL *OFF
>
> GATE_USE_ROOT *ON
>
> GATE_USE_SYSTEM_CLHEP *OFF
>
> Geant496_COMPATIBILITY *ON
>
> Geant4_DIR
> */opt/GATE/GATE7.0/geant4.9.6.p03-install/lib/
>
>
> Can anyone help me solve this problem.
> Thanks,
>
> Babak
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140611/3f38cf34/attachment-0001.html>
More information about the Gate-users
mailing list