[Gate-users] Errors when building GATE 7.2

David Boersma david.boersma at physics.uu.se
Sat Dec 17 14:19:35 CET 2016


Hi Jeff,

The 5.34.36 version that you were considering should work.


To build the 7.2 release with ROOT 6, I think only this very short patch 
is required:

https://github.com/OpenGATE/Gate/commit/63a296d28d55dff4f9538cc42ea3566d9c1bca21

David

Den 16/12/2016 kl. 22:56, skrev Sarlo, Jeffrey S:
> Which version of ROOT should I be using?
>
> Thanks.
> Jeff
>
> -----Original Message-----
> From: Albertine DUBOIS [mailto:adubois at imnc.in2p3.fr]
> Sent: Friday, December 16, 2016 3:31 PM
> To: Sarlo, Jeffrey S
> Cc: gate-users at lists.opengatecollaboration.org
> Subject: Re: [Gate-users] Errors when building GATE 7.2
>
> 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
> _______________________________________________
> 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