[Gate-users] Installing GATE, Geant4_DIR

Machiel Kolstein mkolstein at ifae.es
Fri Jun 18 08:59:54 CEST 2021


Hi Carlotta,

Thanks for your help. Unfortunately it still doesn't work.
One of the problems is that the file structure for geant you mention, I
don't have.
I have something like this: "
/home/mkolstein/Programs/GAMOS/external/geant4/geant4.10.05.p01.gamos/" and
inside I have "
/home/mkolstein/Programs/GAMOS/external/geant4/geant4.10.05.p01.gamos/lib/Linux-g++/".
I don't have cmake files either.
The error message, alternatively, advices me to provide a
"FindGeant4.cmake" in CMAKE_MODULE_PATH, but this CMAKE_MODULE_PATH I
cannot find in the menu.
The complete error message is:
CMake Error at CMakeLists.txt:59 (FIND_PACKAGE):
   By not providing "FindGeant4.cmake" in CMAKE_MODULE_PATH this project has
   asked CMake to find a package configuration file provided by "Geant4",
but
   CMake did not find one.

   Could not find a package configuration file provided by "Geant4" with any
   of the following names:

     Geant4Config.cmake
     geant4-config.cmake

   Add the installation prefix of "Geant4" to CMAKE_PREFIX_PATH or set
   "Geant4_DIR" to a directory containing one of the above files.  If
"Geant4"
   provides a separate development package or SDK, be sure it has been
   installed.

Best regards,

Machiel


On Thu, Jun 17, 2021 at 4:05 PM Carlotta Trigila <ctrigila at ucdavis.edu>
wrote:

> Sorry I sent it before finishing :)
>
> Did you add the line:
>
> source /PATH_TO/geant4.10.06-install/bin/geant4.sh
>
> in your bash file?
>
> You should have the path
>
> /PATH_TO/geant4.10.06-install/lib/Geant4-10.6.3
>
> in your "ccmake ../Gate-9.0" installation Geant4_DIR.
>
> I hope it helps you!
>
> --
>
> Carlotta Trigila, PhD
>
>
> Department of Biomedical Engineering – GBSF 2505
>
> University of California, Davis
>
> 451 East Health Sciences Drive
>
> Davis, CA 95616
>
>
>
> ------------------------------
> *From:* Carlotta Trigila <ctrigila at ucdavis.edu>
> *Sent:* Thursday, June 17, 2021 7:00 AM
> *To:* Machiel Kolstein <mkolstein at ifae.es>;
> gate-users at lists.opengatecollaboration.org <
> gate-users at lists.opengatecollaboration.org>
> *Subject:* Re: [Gate-users] Installing GATE, Geant4_DIR
>
> Hi Machiel,
>
> did you add the line
>
>
> --
>
> Carlotta Trigila, PhD
>
>
> Department of Biomedical Engineering – GBSF 2505
>
> University of California, Davis
>
> 451 East Health Sciences Drive
>
> Davis, CA 95616
>
>
>
> ------------------------------
> *From:* Gate-users <gate-users-bounces at lists.opengatecollaboration.org>
> on behalf of Machiel Kolstein <mkolstein at ifae.es>
> *Sent:* Thursday, June 17, 2021 6:52 AM
> *To:* gate-users at lists.opengatecollaboration.org <
> gate-users at lists.opengatecollaboration.org>
> *Subject:* [Gate-users] Installing GATE, Geant4_DIR
>
>
> Hi,
>
> I am trying to install Gate v9.0, following the instructions of
> https://opengate.readthedocs.io/en/latest/compilation_instructions.html#gate-v9-0
>
> I already have Geant4 and ROOT installed and compiled, months ago, so I
> don't want to do that again.
> When I type: "ccmake ../Gate-9.0" I get a window with a menu and when I
> select "c" (configure), I get:
>
>
> *Could not find a package configuration file provided by "Geant4" with any
> of the following names:      Geant4Config.cmake      geant4-config.cmak*
> My Geant4 installation does not have any of these files, and in any case,
> I don't want to re-compile Geant.
> When in the parameters menu, for "Geant4_DIR", I put
> "/home/mkolstein/Programs/geant4/geant4.10.05.p01.gamos/lib/Linux-g++/"
> I get the same error message and in the Geant4_DIR it puts
> "Geant4_DIR-NOTFOUND"
>
> So, how do I fix this?
>
> Best regards,
>
> Machiel
>
>
>
> --
> Avís - Aviso - Legal Notice - (LOPD) - http://legal.ifae.es
>
> Avís - Aviso - Legal Notice - (LOPD) - http://legal.ifae.es
>


-- 
Avís - Aviso - Legal Notice - (LOPD) - http://legal.ifae.es

-- 
Avís -
Aviso - Legal Notice - (LOPD) - http://legal.ifae.es 
<http://legal.ifae.es/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210618/576b9c92/attachment.html>


More information about the Gate-users mailing list