[Gate-users] Errors when building GATE 7.2

Sarlo, Jeffrey S JSarlo at Central.UH.EDU
Fri Dec 16 22:22:45 CET 2016


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


More information about the Gate-users mailing list