<div dir="ltr">Hello, <div><br></div><div>- 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). </div>
<div><br></div><div>- for the variable <span style="font-size:13px;font-family:verdana,sans-serif">CLHEP_LIBRARY you need to provide the path of the *library* not the folder, something like : /</span>opt/simulations/<a href="http://2.1.1.0/CLHEP/lib/libCLHEP-2.1.1.0.so">2.1.1.0/CLHEP/lib/libCLHEP-2.1.1.0.so</a> </div>
<div><br></div><div>- 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. </div>
<div><br></div><div>Sincerely, <br></div><div>David</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 20, 2014 at 11:16 PM, Michal Knap <span dir="ltr"><<a href="mailto:michal.knap@gmail.com" target="_blank">michal.knap@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><b>I did as You told.</b><br><br><i>root@mknap:/opt/simulations/geant4.9.5.p02_build# ccmake ../geant4.9.5.p02 -DGEANT4_USE_SYSTEM_CLHEP=OFF<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> CMake Error at cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:512 (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<div class="im"><br> Call Stack (most recent call first):<br></div> CMakeLists.txt:116 (include)<br><br><br><br> CMake Error at cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:520 (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<div class="im"><br> Call Stack (most recent call first):<br></div> CMakeLists.txt:116 (include)<br>
<br><br><br> CMake Error at cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:533 (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<div class="im">
<br>
Call Stack (most recent call first):<br></div> CMakeLists.txt:116 (include)<br><br><br><br> CMake Error at 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<div class="im"><br> Call Stack (most recent call first):<br></div> CMakeLists.txt:116 (include)<br><br><br><br> CMake Error at cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:601 (file):<div class="im">
<br>
<br>Errors occurred during the last pass <br> CMake Version 2.8.7<br>
Press [e] to exit help</div></i><br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><b>Still something wrong.<br></b></div><div class="gmail_default" style="font-family:verdana,sans-serif"><b>Can You help?</b><br>
</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><font face="verdana,sans-serif">Pozdrawiam<br>Michał Knap</font></div></div><div><div class="h5">
<br><br><div class="gmail_quote">2014/1/20 Mojca Miklavec <span dir="ltr"><<a href="mailto:mojca.miklavec.lists@gmail.com" target="_blank">mojca.miklavec.lists@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>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 least<br>
> version "2.1.0.1")<br>
> Call Stack (most recent call first):<br>
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252<br>
> (_FPHSA_FAILURE_MESSAGE)<br>
> cmake/Modules/FindCLHEP.cmake:238 (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>
</div></div>I use the following options to compile with system's clhep (or a local<br>
installation of CLHEP that may be located anywhere as long as the 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>
<div>> System clhep means you have your own clhep.<br>
<br>
</div>This used to be the case in Gate a while ago (not in Geant4), but 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 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 arguments<br>
to cmake.<br>
<span><font color="#888888"><br>
Mojca<br>
</font></span></blockquote></div><br></div></div></div>
<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></blockquote></div><br><br clear="all"><div><br></div>
-- <br><div dir="ltr">David Sarrut, Phd<br>Directeur de recherche CNRS<br>CREATIS, UMR CNRS 5220, Inserm U 1044<div>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>_________________________________</div><div> "2 + 2 = 5, for extremely large values of 2"<br>_________________________________</div>
</div>
</div>