<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><br clear="all"></div><div><div dir="ltr"><font face="verdana,sans-serif">Pozdrawiam<br>Micha³ Knap</font></div></div>
<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Mojca Miklavec</b> <span dir="ltr"><<a href="mailto:mojca.miklavec.lists@gmail.com">mojca.miklavec.lists@gmail.com</a>></span><br>
Date: 2014/1/21<br>Subject: Re: [Gate-users] Geant4.9.5.p02 problem with the installation using cmake<br>To: Michal Knap <<a href="mailto:michal.knap@gmail.com">michal.knap@gmail.com</a>><br><br><br><div class="im">
On Tue, Jan 21, 2014 at 3:28 PM, Michal Knap <<a href="mailto:michal.knap@gmail.com">michal.knap@gmail.com</a>> wrote:<br>
> Yes. This is it. Thanks a lot for Your help.<br>
<br>
</div>Hi,<br>
<br>
Since I only wrote this off-list, I believe you should also let the<br>
mailing list know how you solved the problem.<br>
<span class="HOEnZb"><font color="#888888"><br>
Mojca<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
> Pozdrawiam<br>
> Micha³ Knap<br>
><br>
><br>
> 2014/1/21 Mojca Miklavec <<a href="mailto:mojca.miklavec.lists@gmail.com">mojca.miklavec.lists@gmail.com</a>><br>
>><br>
>> What exactly did you set for CMAKE_INSTALL_PREFIX? Did you forget to<br>
>> use the leading slash by any chance?<br>
>><br>
>> Mojca<br>
>><br>
>><br>
>> On Tue, Jan 21, 2014 at 3:07 PM, Michal Knap <<a href="mailto:michal.knap@gmail.com">michal.knap@gmail.com</a>><br>
>> wrote:<br>
>> > Thanks a lot. I solved problems with CLHEP (i hope so) but no i have<br>
>> > this<br>
>> > while configuring:<br>
>> ><br>
>> ><br>
>> > CMake Error at<br>
>> > cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:512<br>
>> > (file):<br>
>> > file RELATIVE_PATH must be passed a full path to the directory:<br>
>> > opt/simulations/geant4.9.5.p02_install/share/Geant4-9.5.2/geant4make<br>
>> > Call Stack (most recent call first):<br>
>> > CMakeLists.txt:116 (include)<br>
>> ><br>
>> ><br>
>> > CMake Error at<br>
>> > cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:520<br>
>> > (file):<br>
>> > file RELATIVE_PATH must be passed a full path to the directory:<br>
>> > opt/simulations/geant4.9.5.p02_install/share/Geant4-9.5.2/geant4make<br>
>> > Call Stack (most recent call first):<br>
>> > CMakeLists.txt:116 (include)<br>
>> ><br>
>> ><br>
>> > CMake Error at<br>
>> > cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:533<br>
>> > (file):<br>
>> > file RELATIVE_PATH must be passed a full path to the directory:<br>
>> > opt/simulations/geant4.9.5.p02_install/share/Geant4-9.5.2/geant4make<br>
>> ><br>
>> ><br>
>> > Errors occurred during the last pass<br>
>> ><br>
>> > CMake Version 2.8.7<br>
>> > Press [e] to exit help<br>
>> ><br>
>> ><br>
>> ><br>
>> > Thanks in advance.<br>
>> ><br>
>> > Pozdrawiam<br>
>> > Micha³ Knap<br>
>> ><br>
>> ><br>
>> > 2014/1/21 David Sarrut <<a href="mailto:David.Sarrut@creatis.insa-lyon.fr">David.Sarrut@creatis.insa-lyon.fr</a>><br>
>> >><br>
>> >> Hello,<br>
>> >><br>
>> >> - try a clean installation of Geant4 in a (empty) folder different from<br>
>> >> the source one ("in-source build detected"), be sure to restart from<br>
>> >> scratch<br>
>> >> (even the initial g4 source).<br>
>> >><br>
>> >> - for the variable CLHEP_LIBRARY you need to provide the path of the<br>
>> >> *library* not the folder, something like :<br>
>> >> /opt/simulations/<a href="http://2.1.1.0/CLHEP/lib/libCLHEP-2.1.1.0.so" target="_blank">2.1.1.0/CLHEP/lib/libCLHEP-2.1.1.0.so</a><br>
>> >><br>
>> >> - it is not possible to use clhep delivered with geant4 : you have to<br>
>> >> use<br>
>> >> your own version ("system" clhep), and indicate the path, both to<br>
>> >> geant4<br>
>> >> then to Gate. This is because the clhep delivered with Geant4 is only a<br>
>> >> subset of clhep, and Gate need functions in clhep that are not<br>
>> >> contained in<br>
>> >> this subset.<br>
>> >><br>
>> >> Sincerely,<br>
>> >> David<br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >> On Mon, Jan 20, 2014 at 11:16 PM, Michal Knap <<a href="mailto:michal.knap@gmail.com">michal.knap@gmail.com</a>><br>
>> >> wrote:<br>
>> >>><br>
>> >>> I did as You told.<br>
>> >>><br>
>> >>> root@mknap:/opt/simulations/geant4.9.5.p02_build# ccmake<br>
>> >>> ../geant4.9.5.p02 -DGEANT4_USE_SYSTEM_CLHEP=OFF<br>
>> >>><br>
>> >>><br>
>> >>> ________________________________________________________________________________________<br>
>> >>> CLHEP_INCLUDE_DIR<br>
>> >>> /opt/simulations/<a href="http://2.1.1.0/CLHEP" target="_blank">2.1.1.0/CLHEP</a><br>
>> >>> CLHEP_LIBRARY<br>
>> >>> /opt/simulations/<a href="http://2.1.1.0/CLHEP/bin" target="_blank">2.1.1.0/CLHEP/bin</a><br>
>> >>> CMAKE_BUILD_TYPE Release<br>
>> >>> CMAKE_INSTALL_PREFIX<br>
>> >>> opt/simulations/geant4.9.5.p02_install<br>
>> >>> GEANT4_INSTALL_DATA ON<br>
>> >>> GEANT4_USE_G3TOG4 OFF<br>
>> >>> GEANT4_USE_GDML OFF<br>
>> >>> GEANT4_USE_INVENTOR OFF<br>
>> >>> GEANT4_USE_OPENGL_X11 ON<br>
>> >>> GEANT4_USE_QT ON<br>
>> >>> GEANT4_USE_RAYTRACER_X11 OFF<br>
>> >>> GEANT4_USE_XM OFF<br>
>> >>> QT_QMAKE_EXECUTABLE<br>
>> >>> /usr/bin/qmake<br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> ______________________________________________________________________________<br>
>> >>> CMake Error at<br>
>> >>> cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:512 (file):<br>
>> >>> file RELATIVE_PATH must be passed a full path to the directory:<br>
>> >>><br>
>> >>> opt/simulations/geant4.9.5.p02_install/share/Geant4-9.5.2/geant4make<br>
>> >>><br>
>> >>> Call Stack (most recent call first):<br>
>> >>> CMakeLists.txt:116 (include)<br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> CMake Error at<br>
>> >>> cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:520 (file):<br>
>> >>> file RELATIVE_PATH must be passed a full path to the directory:<br>
>> >>><br>
>> >>> opt/simulations/geant4.9.5.p02_install/share/Geant4-9.5.2/geant4make<br>
>> >>><br>
>> >>> Call Stack (most recent call first):<br>
>> >>> CMakeLists.txt:116 (include)<br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> CMake Error at<br>
>> >>> cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:533 (file):<br>
>> >>> file RELATIVE_PATH must be passed a full path to the directory:<br>
>> >>><br>
>> >>> opt/simulations/geant4.9.5.p02_install/share/Geant4-9.5.2/geant4make<br>
>> >>><br>
>> >>> Call Stack (most recent call first):<br>
>> >>> CMakeLists.txt:116 (include)<br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> CMake Error at<br>
>> >>> cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:592 (file):<br>
>> >>> file RELATIVE_PATH must be passed a full path to the directory:<br>
>> >>> opt/simulations/geant4.9.5.p02_install/bin<br>
>> >>><br>
>> >>> Call Stack (most recent call first):<br>
>> >>> CMakeLists.txt:116 (include)<br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> CMake Error at<br>
>> >>> cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:601 (file):<br>
>> >>><br>
>> >>><br>
>> >>> Errors occurred during the last pass<br>
>> >>><br>
>> >>> CMake Version 2.8.7<br>
>> >>> Press [e] to exit help<br>
>> >>><br>
>> >>><br>
>> >>> Still something wrong.<br>
>> >>> Can You help?<br>
>> >>><br>
>> >>> Pozdrawiam<br>
>> >>> Micha³ Knap<br>
>> >>><br>
>> >>><br>
>> >>> 2014/1/20 Mojca Miklavec <<a href="mailto:mojca.miklavec.lists@gmail.com">mojca.miklavec.lists@gmail.com</a>><br>
>> >>>><br>
>> >>>> On Mon, Jan 20, 2014 at 10:42 PM, Michal Knap wrote:<br>
>> >>>> > I did as You told and i get this:<br>
>> >>>> ><br>
>> >>>> > CMake Error at<br>
>> >>>> > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91<br>
>> >>>> > (MESSAGE):<br>
>> >>>> > Could NOT find CLHEP:<br>
>> >>>> ><br>
>> >>>> > CLHEP Header Path Not Found<br>
>> >>>> ><br>
>> >>>> > CLHEP Library Not Found<br>
>> >>>> ><br>
>> >>>> > Incompatible versions, (found) < 2.1.0.1(required)<br>
>> >>>> ><br>
>> >>>> > (missing: CLHEP_LIBRARY CLHEP_INCLUDE_DIR) (Required is at<br>
>> >>>> > least<br>
>> >>>> > version "2.1.0.1")<br>
>> >>>> > Call Stack (most recent call first):<br>
>> >>>> ><br>
>> >>>> ><br>
>> >>>> > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252<br>
>> >>>> > (_FPHSA_FAILURE_MESSAGE)<br>
>> >>>> > cmake/Modules/FindCLHEP.cmake:238<br>
>> >>>> > (find_package_handle_standard_args)<br>
>> >>>> > cmake/Modules/Geant4OptionalComponents.cmake:41 (find_package)<br>
>> >>>> > CMakeLists.txt:79 (include)<br>
>> >>>> ><br>
>> >>>> > What is wrong this time?<br>
>> >>>><br>
>> >>>> I use the following options to compile with system's clhep (or a<br>
>> >>>> local<br>
>> >>>> installation of CLHEP that may be located anywhere as long as the<br>
>> >>>> path<br>
>> >>>> is provided):<br>
>> >>>><br>
>> >>>> -DGEANT4_USE_SYSTEM_CLHEP=ON \<br>
>> >>>> -DCLHEP_CONFIG_EXECUTABLE=${prefix}/bin/clhep-config \<br>
>> >>>> -DCLHEP_INCLUDE_DIR=${prefix}/include \<br>
>> >>>> -DCLHEP_LIBRARY=${prefix}/lib/libCLHEP.dylib<br>
>> >>>><br>
>> >>>> (where you need to replace ${prefix} with the actual place where you<br>
>> >>>> have CLHEP installed).<br>
>> >>>><br>
>> >>>> The following is not true:<br>
>> >>>> > System clhep means you have your own clhep.<br>
>> >>>><br>
>> >>>> This used to be the case in Gate a while ago (not in Geant4), but<br>
>> >>>> Gate<br>
>> >>>> fixed this recently as well.<br>
>> >>>><br>
>> >>>> If you want to build the built-in CLHEP, you actually need to run<br>
>> >>>> [c]cmake ../geant4.9.5-p02 -DGEANT4_USE_SYSTEM_CLHEP=OFF<br>
>> >>>> or set that variable in the installer. But last time I tried, the<br>
>> >>>> built-in CLHEP from Geant4 wasn't sufficient for Gate for some<br>
>> >>>> reason.<br>
>> >>>><br>
>> >>>> It doesn't help you to export PATH and LD_LIBRARY_PATH. You need to<br>
>> >>>> set the proper variables either in ccmake or as command-line<br>
>> >>>> arguments<br>
>> >>>> to cmake.<br>
>> >>>><br>
>> >>>> Mojca<br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> _______________________________________________<br>
>> >>> Gate-users mailing list<br>
>> >>> <a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
>> >>> <a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> David Sarrut, Phd<br>
>> >> Directeur de recherche CNRS<br>
>> >> CREATIS, UMR CNRS 5220, Inserm U 1044<br>
>> >> Centre de lutte contre le cancer Léon Bérard<br>
>> >> 28 rue Laënnec, 69373 Lyon cedex 08<br>
>> >> Tel : 04 78 78 51 51 / 06 74 72 05 42<br>
>> >> <a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>
>> >> _________________________________<br>
>> >> "2 + 2 = 5, for extremely large values of 2"<br>
>> >> _________________________________<br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></div><br></div>