<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">2.1.1.0/CLHEP</a>                                                                             <br>
 CLHEP_LIBRARY                   <br> /opt/simulations/<a href="http://2.1.1.0/CLHEP/bin">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<br> Call Stack (most recent call first):<br>   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<br> Call Stack (most recent call first):<br>   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<br>
 Call Stack (most recent call first):<br>   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<br> Call Stack (most recent call first):<br>   CMakeLists.txt:116 (include)<br><br><br><br> CMake Error at cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake:601 (file):<br>
<br>Errors occurred during the last pass                                                                                                          <br>                                                                                                                           CMake Version 2.8.7<br>
Press [e] to exit help</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>
<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 class="HOEnZb"><div class="h5">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 class="im">> 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 class="HOEnZb"><font color="#888888"><br>
Mojca<br>
</font></span></blockquote></div><br></div>