[Gate-users] Errors when building GATE 7.2
Albertine DUBOIS
adubois at imnc.in2p3.fr
Fri Dec 16 22:30:48 CET 2016
Dear Jeffrey,
As mentioned in the installation guide (http://wiki.opengatecollaboration.org/index.php/Installation_Guide_V7.2#GATE_compilation_and_installation), GATE 7.2 has to be used with Geant4 10.02 (while remaining backward compatible with Geant4 10.01).
Cheers,
Albertine
----- Mail original -----
De: "Sarlo, Jeffrey S" <JSarlo at Central.UH.EDU>
À: gate-users at lists.opengatecollaboration.org
Envoyé: Vendredi 16 Décembre 2016 22:22:45
Objet: [Gate-users] Errors when building GATE 7.2
One of the user groups has asked for GATE to be installed. I have been having some errors when building and I am not sure if I am just not using the correct versions of the related software.
I have tried both ROOT 6.08.02 and 5.34.36. I tried GEANT4 10.03 first and am now trying GEANT4 10.02p2. I am building on RHEL 6 with gcc 5.2 and cmake 3.6.3.
The first error I get is
[ 67%] Building CXX object CMakeFiles/Gate.dir/source/physics/src/GateDecayPB.cc.o
/var/tmp/packages/gate_v7.2/source/physics/src/GateDecayPB.cc: In member function 'virtual bool GateDecayPB::IsApplicable(G4ParticleDefinition*)':
/var/tmp/packages/gate_v7.2/source/physics/src/GateDecayPB.cc:60:40: error: 'Me ' was not declared in this scope
} else if (par->GetPDGMass() <= 0.0*MeV) {
^
/var/tmp/packages/gate_v7.2/source/physics/src/GateDecayPB.cc:60:40: note: suggested alternative:
In file included from /share/apps/geant4.10.03/include/Geant4/CLHEP/Units/PhysicalConstants.h:42:0,
from /share/apps/geant4.10.03/include/Geant4/G4ParticleDefinition.hh:58,
from /var/tmp/packages/gate_v7.2/source/physics/include/GateVProcess.hh:30,
from /var/tmp/packages/gate_v7.2/source/physics/include/GateDecayPB.hh:14,
from /var/tmp/packages/gate_v7.2/source/physics/src/GateDecayPB.cc:10:
/share/apps/geant4.10.03/include/Geant4/CLHEP/Units/SystemOfUnits.h:174:27: note: 'CLHEP::MeV'
static constexpr double MeV = megaelectronvolt;
^
/var/tmp/packages/gate_v7.2/source/physics/src/GateDecayPB.cc:65:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [CMakeFiles/Gate.dir/source/physics/src/GateDecayPB.cc.o] Error 1
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
make: *** [all] Error 2
I looked around about that one and found that if I add #include G4SystemOfUnits.hh I can get past that one. Next I get
[ 7%] Building CXX object CMakeFiles/Gate.dir/source/physics/src/GateFakePhysicsList.cc.o
/var/tmp/packages/gate_v7.2/source/physics/src/GateFakePhysicsList.cc: In member function 'void GateFakePhysicsList::ConstructEM()':
/var/tmp/packages/gate_v7.2/source/physics/src/GateFakePhysicsList.cc:90:3: error: 'theParticleIterator' was not declared in this scope
theParticleIterator->reset();
^
/var/tmp/packages/gate_v7.2/source/physics/src/GateFakePhysicsList.cc: In member function 'void GateFakePhysicsList::ConstructGeneral()':
/var/tmp/packages/gate_v7.2/source/physics/src/GateFakePhysicsList.cc:127:3: error: 'theParticleIterator' was not declared in this scope
theParticleIterator->reset();
^
make[2]: *** [CMakeFiles/Gate.dir/source/physics/src/GateFakePhysicsList.cc.o] Error 1
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
make: *** [all] Error 2
What I could find about that is that theParticleIterator isn't in GEANT4 v10 anymore. aParticleIterator is supposed to be used.
Should I be using a different version of GEANT4 to use with GATE?
Thanks.
Jeff
University of Houston
HPC System Administrator
_______________________________________________
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