[Gate-users] GATE ECAT7 Help
Bohnenberger, Hendrik
Hendrik.Bohnenberger at uniklinikum-saarland.de
Thu May 19 09:20:08 CEST 2011
Hello Jonathan
I had a similar problem with the ECAT output in vGate. You can solve this problem as follows.
First download the 'GATE 5.0.0 Installation Guide for Ubuntu' from the GATE homepage under Documentation --> Installing Gate. Included in this file you find the ECAT libraries with a custom ECAT makefile. Copy the Ecat libraries in your gate folder. In the makefile you have to change "CC=cc" to "CC=gcc" (1st line). Then just do make and make install. After that you have to set the environment variables. Just type 'export ECAT7_HOME=path/of/the/ECAT_libraries' into the env_gate.sh file. Source this file and recompile gate itself.
Hope it helps
Kind regards
Hendrik Bohnenberger
-----Ursprüngliche Nachricht-----
Von: gate-users-bounces at lists.opengatecollaboration.org [mailto:gate-users-bounces at lists.opengatecollaboration.org] Im Auftrag von Jonathan Madsen
Gesendet: Mittwoch, 18. Mai 2011 23:15
An: gate-users at lists.opengatecollaboration.org
Betreff: [Gate-users] GATE ECAT7 Help
Hello,
I am using vGATE and I am having trouble running the example_PET problem
with the ECAT7 output. I get the following error message:
> [G4] Output module: 'sinogram'
> [G4] >> Job: build a set of 2D sinograms
> from a PET simulation
> [G4] >> Is enabled ? Yes
> [G4] >> Number of crystals per crystal ring: 0
> [G4] >> Number of crystal rings: 0
> [G4] >> Number of radial sinogram bins: 0
> [G4] >> Filled ? No
> [G4] >> Attached to system: systems/ecat
> [G4-cerr] ***** COMMAND NOT FOUND </gate/output/ecat7/enable> *****
> [Gate] Sorry, error in a macro command : abort.
> >> Input data: finalCoincat
I have followed the instructions of two different sites:
http://cc.in2p3.fr/docenligne/674/en#0.7
And
The manual:
Installation
In order to compile the ecat7 output module of Gate, the ecat library
written at the PET Unit of the Catholic University of Louvain-la-Neuve (UCL,
Belgium) is required. It can be downloaded from their web site:
http://www.topo.ucl.ac.be/ecat_Clib.html
Three files are required: the library file libecat.a and the two header
files matrix.h and machine_indep.h.
To compile Gate with the ecat7 library without changing the env_gate.csh and
GNUmakefile files, the en- vironment variable ECAT7_HOME has to be defined
and set to the name of the home directory where the ecat7 library is
installed (for example, /usr/local/ecat7). In this ecat7 home directory, two
subdirectories should be created: lib and include. The header files are put
in the ${ECAT7_HOME}/include directory. For each system, a specific
subdirectory named after the G4SYSTEM environment variable value should be
created in the ${ECAT7_HOME}/lib directory. The corresponding library file
libecat.a has to be located in this ${ECAT7_HOME}/lib/${G4SYSTEM} directory.
The matrix.h file has to be modified to add the declaration of the
mh_update() function. The following line can be added in the "high level
user functions" part of matrix.h:
int mh_update(MatrixFile*);
I have also tried export G4ANALYSIS_USE_ECAT7=1.
Please any suggestions would help, thank you.
Jonathan Madsen
_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
More information about the Gate-users
mailing list