[Gate-users] Geant4.9.5.p02 problem with the installation using cmake
Hermann Fuchs
hermann.fuchs at meduniwien.ac.at
Wed Jan 22 08:24:24 CET 2014
Alternatively, if you set the root environment variables beforehand
e.g. by
source /yourpathToRoot/bin/thisroot.sh
Gate should already know the correct path to use.
Cheers,
Hermann
On Tue, 2014-01-21 at 23:15 +0000, Pedro Correia wrote:
> Have you tried to change
>
> > ROOTCINT_EXECUTABLE /opt/simulations/root/cint/cint/
>
> to
>
>
> > ROOTCINT_EXECUTABLE /opt/simulations/root/bin/rootcint
> ?
>
>
> Best regards, Pedro
>
>
>
>
> No dia 21/01/2014, às 22:50, Michal Knap <michal.knap at gmail.com>
> escreveu:
>
>
>
> > I finally made Geant4 installed but i have problems with Gate.
> > ______________________________________________________________________________________
> > CMAKE_BACKWARDS_COMPATIBILITY
> > 2.4
> > CMAKE_BUILD_TYPE
> > Release
> > CMAKE_INSTALL_PREFIX /usr/local
> > EXECUTABLE_OUTPUT_PATH
> > GATE_ANALYSIS_USE_FILE
> > ON
> > GATE_ANALYSIS_USE_GENERAL
> > ON
> > GATE_USE_ECAT7
> > OFF
> > GATE_USE_LMF
> > OFF
> > GATE_USE_OPTICAL
> > ON
> > GATE_USE_OWN_CLHEP
> > ON
> > GATE_USE_ROOT
> > ON
> > Geant4_DIR /usr/local/lib/Geant4-9.5.2
> > LIBRARY_OUTPUT_PATH
> > ROOTCINT_EXECUTABLE /opt/simulations/root/cint/cint/
> > WITH_GEANT4_UIVIS
> > ON
> >
> >
> >
> > ROOTCINT_EXECUTABLE: Path to a
> > program.
> > Press [enter] to edit option
> > Press [c] to configure
> > Press [h] for help Press [q] to quit without generating
> > Press [t] to toggle advanced mode (Currently Off)
> > __________________________________________________________________________________________
> > Root Not found ! Please install Root and make it available in PATH
> >
> > CMake Error at cmake-modules/FindCLHEP.cmake:183 (file):
> > file Internal CMake error when trying to open file:
> > /opt/simulations/2.1.1.0/CLHEP/CLHEP/Units/defs.h for reading.
> > Call Stack (most recent call first):
> > CMakeLists.txt:73 (FIND_PACKAGE)
> >
> >
> > What path to ROOT sholud i give?
> >
> >
> > Thanks in advance
> >
> >
> >
> >
> >
> > Pozdrawiam
> > Michał Knap
> >
> >
> >
> >
> > 2014/1/21 Michal Knap <michal.knap at gmail.com>
> >
> >
> >
> > Pozdrawiam
> > Michał Knap
> >
> >
> >
> > ---------- Forwarded message ----------
> > From: Mojca Miklavec <mojca.miklavec.lists at gmail.com>
> > Date: 2014/1/21
> > Subject: Re: [Gate-users] Geant4.9.5.p02 problem with the
> > installation using cmake
> > To: Michal Knap <michal.knap at gmail.com>
> >
> >
> >
> > On Tue, Jan 21, 2014 at 3:28 PM, Michal Knap
> > <michal.knap at gmail.com> wrote:
> > > Yes. This is it. Thanks a lot for Your help.
> >
> >
> >
> > Hi,
> >
> > Since I only wrote this off-list, I believe you should also
> > let the
> > mailing list know how you solved the problem.
> >
> > Mojca
> >
> >
> >
> > > Pozdrawiam
> > > Michał Knap
> > >
> > >
> > > 2014/1/21 Mojca Miklavec <mojca.miklavec.lists at gmail.com>
> > >>
> > >> What exactly did you set for CMAKE_INSTALL_PREFIX? Did
> > you forget to
> > >> use the leading slash by any chance?
> > >>
> > >> Mojca
> > >>
> > >>
> > >> On Tue, Jan 21, 2014 at 3:07 PM, Michal Knap
> > <michal.knap at gmail.com>
> > >> wrote:
> > >> > 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.7
> > >> > Press [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
> > >> >>> CLHEP_LIBRARY
> > >> >>> /opt/simulations/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"
> > >> >> _________________________________
> > >> >
> > >> >
> > >
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Gate-users mailing list
> > Gate-users at lists.opengatecollaboration.org
> > http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
>
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
--
-------------
DI Hermann Fuchs
Christian Doppler Laboratory for Medical Radiation Research for Radiation Oncology
Department of Radiation Oncology
Medical University Vienna
Währinger Gürtel 18-20
A-1090 Wien
Tel. + 43 / 1 / 40 400 7271
Mail. hermann.fuchs at meduniwien.ac.at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140122/63d3c13d/attachment-0001.html>
More information about the Gate-users
mailing list