[Gate-users] Geant4.9.5.p02 problem with the installation using cmake

Michal Knap michal.knap at gmail.com
Mon Jan 20 23:16:31 CET 2014


*I did as You told.*


























































*root at mknap:/opt/simulations/geant4.9.5.p02_build# ccmake ../geant4.9.5.p02
-DGEANT4_USE_SYSTEM_CLHEP=OFF________________________________________________________________________________________
CLHEP_INCLUDE_DIR
 /opt/simulations/2.1.1.0/CLHEP
<http://2.1.1.0/CLHEP>
 CLHEP_LIBRARY                    /opt/simulations/2.1.1.0/CLHEP/bin
<http://2.1.1.0/CLHEP/bin>
 CMAKE_BUILD_TYPE
Release
 CMAKE_INSTALL_PREFIX
opt/simulations/geant4.9.5.p02_install
 GEANT4_INSTALL_DATA
ON
 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_XM
OFF
 QT_QMAKE_EXECUTABLE
/usr/bin/qmake
______________________________________________________________________________
CMake
Error at cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:512
(file):   file RELATIVE_PATH must be passed a full path to the directory:
opt/simulations/geant4.9.5.p02_install/share/Geant4-9.5.2/geant4make Call
Stack (most recent call first):   CMakeLists.txt:116 (include) CMake Error
at cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:520 (file):
file RELATIVE_PATH must be passed a full path to the directory:
opt/simulations/geant4.9.5.p02_install/share/Geant4-9.5.2/geant4make Call
Stack (most recent call first):   CMakeLists.txt:116 (include) CMake Error
at cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:533 (file):
file RELATIVE_PATH must be passed a full path to the directory:
opt/simulations/geant4.9.5.p02_install/share/Geant4-9.5.2/geant4make Call
Stack (most recent call first):   CMakeLists.txt:116 (include) CMake Error
at cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:592 (file):
file RELATIVE_PATH must be passed a full path to the directory:
opt/simulations/geant4.9.5.p02_install/bin Call Stack (most recent call
first):   CMakeLists.txt:116 (include) CMake Error at
cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:601 (file):Errors
occurred during the last
pass

CMake Version 2.8.7Press [e] to exit help*


*Still something wrong.*
*Can You help?*

Pozdrawiam
Michał Knap


2014/1/20 Mojca Miklavec <mojca.miklavec.lists at gmail.com>

> On Mon, Jan 20, 2014 at 10:42 PM, Michal Knap wrote:
> > I did as You told and i get this:
> >
> >  CMake Error at
> > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
> > (MESSAGE):
> >    Could NOT find CLHEP:
> >
> >    CLHEP Header Path Not Found
> >
> >    CLHEP Library Not Found
> >
> >    Incompatible versions, (found) < 2.1.0.1(required)
> >
> >     (missing:  CLHEP_LIBRARY CLHEP_INCLUDE_DIR) (Required is at least
> > version "2.1.0.1")
> >  Call Stack (most recent call first):
> >    /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252
> > (_FPHSA_FAILURE_MESSAGE)
> >    cmake/Modules/FindCLHEP.cmake:238 (find_package_handle_standard_args)
> >    cmake/Modules/Geant4OptionalComponents.cmake:41 (find_package)
> >    CMakeLists.txt:79 (include)
> >
> > What is wrong this time?
>
> I use the following options to compile with system's clhep (or a local
> installation of CLHEP that may be located anywhere as long as the path
> is provided):
>
>     -DGEANT4_USE_SYSTEM_CLHEP=ON \
>     -DCLHEP_CONFIG_EXECUTABLE=${prefix}/bin/clhep-config \
>     -DCLHEP_INCLUDE_DIR=${prefix}/include \
>     -DCLHEP_LIBRARY=${prefix}/lib/libCLHEP.dylib
>
> (where you need to replace ${prefix} with the actual place where you
> have CLHEP installed).
>
> The following is not true:
> > System clhep means you have your own clhep.
>
> This used to be the case in Gate a while ago (not in Geant4), but Gate
> fixed this recently as well.
>
> If you want to build the built-in CLHEP, you actually need to run
>     [c]cmake ../geant4.9.5-p02 -DGEANT4_USE_SYSTEM_CLHEP=OFF
> or set that variable in the installer. But last time I tried, the
> built-in CLHEP from Geant4 wasn't sufficient for Gate for some reason.
>
> It doesn't help you to export PATH and LD_LIBRARY_PATH. You need to
> set the proper variables either in ccmake or as command-line arguments
> to cmake.
>
> Mojca
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140120/6cb11891/attachment-0001.html>


More information about the Gate-users mailing list