[Gate-users] GATE installation

David Boersma david.boersma at acmit.at
Fri Jan 10 13:35:38 CET 2020


Hi Muhammad,


General remark: we ask users to keep the conversation on the mailing list. Other users with similar issues may find it helpful to see whether your issue got resolved or not (and if yes: how). Also: if the first responder (in this case: me) does not have time to answer your follow-up question, then maybe someone else may answer. I admit that sometimes I myself use "reply" instead of "reply-to-all" by accident, but when I find out that that happened (only one person received it) then I just send the same message again to the list.


About the fatal error that you report: it looks like you try to compile with GATE_USE_ECAT enabled. Do you really need it? If not, then switch it off (in ccmake), and then rerun make.


ECAT is very old software that is not officially maintained by GATE. We provide a version of the ecat source code on our website and offer the GATE_USE_ECAT flag in cmake, but in principle you are kind of on your own to make it work. That said: if you really really really do need ECAT, then make sure that you compiled and installed the ECAT library (congrats if you succeed!). Before running ccmake, the environment variable ECAT7_HOME should point to the ECAT installation/build directory, and check that "$ECAT7_HOME/include" contains matrix.h and other header files, and "$ECAT7_HOME/lib" contains the library files (.a or .so files). A very similar story holds for "LMF".


Good luck,

David Boersma



________________________________
Von: Muhammad Afzaal Sadaqat <muhammadafzaalsadaqat786 at gmail.com>
Gesendet: Donnerstag, 9. Jänner 2020 17:55:46
An: David Boersma
Betreff: Re: [Gate-users] GATE installation

Thanks David for your reply, i followed your steps it really helped a lot.
Now i am facing problem with following "make" command

make -jN (N is the number of processor(s) in your PC)

After sometime of its execution, 35% fatal error occured (screenshot is attached).

Kindly solve this issue as soon as possible i will be thankful to you.


On Wed, Jan 8, 2020 at 6:15 PM David Boersma <david.boersma at acmit.at<mailto:david.boersma at acmit.at>> wrote:

Hi Muhammad,


I assume that you are following these instructions:

https://opengate.readthedocs.io/en/latest/compilation_instructions.html


Correct?


From the error message in your first mail it looks like like you are using the same build directory for Geant4 and for Gate. When compiling from source, each package should be built in a separate build directory.


In the error message of your second mail it looks like ccmake cannot find the Geant4 build information. As explained in sections 4.3 and 4.4, you should run the following two commands *before* running ccmake in your Gate build directory:


source /PATH_TO/geant4.10.05-install/bin/geant4.sh

source /PATH_TO/root_v6.xx/bin/thisroot.sh


Here the "/PATH_TO/.../" paths should be replaced with with the directories where you *installed* (not built) geant4 and ROOT, respectively.


So could you please try the following:

  *   start a new shell (or a new terminal window)
  *   run those two source commands (geant4 and ROOT)
  *   create a new build directory for Gate v8.2 with "mkdir"
  *   cd into that (empty) build directory
  *   then run: ccmake /PATH_TO/gate_v8.2

(where you replace "/PATH_TO/gate_v8.2" with the full path to the source directory as you got it from unpacking the source tar ball).


And if that seems to run successfully, continue with make, make install, and run some Gate examples from GateContrib. 😊


Hope that helps, good luck!

David

________________________________
Von: Gate-users <gate-users-bounces at lists.opengatecollaboration.org<mailto:gate-users-bounces at lists.opengatecollaboration.org>> im Auftrag von Muhammad Afzaal Sadaqat <muhammadafzaalsadaqat786 at gmail.com<mailto:muhammadafzaalsadaqat786 at gmail.com>>
Gesendet: Dienstag, 7. Jänner 2020 14:59:29
An: gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>
Betreff: [Gate-users] GATE installation

Dear Gate Users,
I have downloaded GATE v8.2 from

http://www.opengatecollaboration.org/GATE80

then

Unzip and untar the downloaded file:

tar -xzf gate_v8.2.tar.gz

In the same directory, i created two directories to build and install GATE:

mkdir gate_v8.2-build
mkdir gate_v8.2-install

After that I moved into the GATE build directory:


cd gate_v8.0-build
when i wrote this command

ccmake ../ Geant4_DIR /home/afzaal/geant4/geant4.10.05.p01-build

in above command i also gave the Geant4 directory where its build files are located.



but i am getting the following error (screenshot attached)


_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200110/c2cf27f3/attachment.html>


More information about the Gate-users mailing list