[Gate-users] Geant4.9.5.p02 problem with the installation using cmake
Michal Knap
michal.knap at gmail.com
Tue Jan 21 15:07:57 CET 2014
*Thanks a lot. I solved problems with CLHEP (i hope so) but no i have this
while configuring:*
*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*
*Errors occurred during the last
pass
CMake Version 2.8.7Press [e] to exit help*
*Thanks in advance.*
Pozdrawiam
Michał Knap
2014/1/21 David Sarrut <David.Sarrut at creatis.insa-lyon.fr>
> Hello,
>
> - try a clean installation of Geant4 in a (empty) folder different from
> the source one ("in-source build detected"), be sure to restart from
> scratch (even the initial g4 source).
>
> - for the variable CLHEP_LIBRARY you need to provide the path of the
> *library* not the folder, something like : /opt/simulations/
> 2.1.1.0/CLHEP/lib/libCLHEP-2.1.1.0.so
>
> - it is not possible to use clhep delivered with geant4 : you have to use
> your own version ("system" clhep), and indicate the path, both to geant4
> then to Gate. This is because the clhep delivered with Geant4 is only a
> subset of clhep, and Gate need functions in clhep that are not contained in
> this subset.
>
> Sincerely,
> David
>
>
>
>
> On Mon, Jan 20, 2014 at 11:16 PM, Michal Knap <michal.knap at gmail.com>wrote:
>
>> *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.7 Press [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
>>>
>>
>>
>> _______________________________________________
>> Gate-users mailing list
>> Gate-users at lists.opengatecollaboration.org
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>>
>
>
>
> --
> David Sarrut, Phd
> Directeur de recherche CNRS
> CREATIS, UMR CNRS 5220, Inserm U 1044
> Centre de lutte contre le cancer Léon Bérard
> 28 rue Laënnec, 69373 Lyon cedex 08
> Tel : 04 78 78 51 51 / 06 74 72 05 42
> http://www.creatis.insa-lyon.fr/~dsarrut
> _________________________________
> "2 + 2 = 5, for extremely large values of 2"
> _________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140121/d1e31015/attachment.html>
More information about the Gate-users
mailing list