[Gate-users] error in installing gate 6.1

Didier BENOIT benoit at imnc.in2p3.fr
Sat Oct 15 17:30:17 CEST 2011


Hi,

Yes it's a little error in the lmf.h file at the line 62. You have to 
remove the ';' at the end of the line 62 in the lmf.h file.
Your lmf.h file is here:
/work0/Gate6.1/lmf_v3.0/includes/lmf.h

Kind Regards,
Didier

On 10/13/2011 04:10 AM, lupa euy wrote:
> THanks for your reply,
> Now I have tried to compile everything..
> CLHEP
> GEANT
> ROOT
> LMF
> and
> GATE
> Almost all stages was oK, except that when I was trying to make GATE,
> in the section of  ;
> Compiling GateCylindricalPETSystem.cc
> there is an error in lmf.h
> but the rest of the compilation was OK
>
> below is the error comment..
>
>
> In file included from /work0/ Gate6.1/lmf_v3.0/includes/dlist.h:47,
>                  from /work0/Gate6.1/lmf_v3.0/includes/lmf.h:51,
>                  from /work0/Gate6.1/lmf_v3.0/includes/lmf_gate.h:28,
>                  from ../digits_hits/include/GateToLMF.hh:21,
>                  from src/GateCylindricalPETSystem.cc:24:
> /work0/Gate6.1/lmf_v3.0/includes/lmf.h:62: error: extra ‘;’
> In file included from /work0/Gate6.1/lmf_v3.0/includes/lmf_gate.h:28,
>                  from ../digits_hits/include/GateToLMF.hh:21,
>                  from src/GateCylindricalPETSystem.cc:24:
> /work0/Gate6.1/lmf_v3.0/includes/lmf.h:62: error: extra ‘;’
> /work0/Gate6.1/CLHEP/include/CLHEP/Units/PhysicalConstants.h:80: 
> warning: ‘CLHEP::electron_charge’ defined but not used
> make[1]: *** [../../tmp/Linux-g++/Gate/GateCylindricalPETSystem.o] Error 1
> In file included from /work0/Gate6.1/lmf_v3.0/includes/dlist.h:47,
>                  from /work0/Gate6.1/lmf_v3.0/includes/lmf.h:51,
>                  from /work0/Gate6.1/lmf_v3.0/includes/lmf_gate.h:28,
>                  from ../digits_hits/include/GateToLMF.hh:21,
>                  from src/GateToLMF.cc:23:
> /work0/Gate6.1/lmf_v3.0/includes/lmf.h:62: error: extra ‘;’
> In file included from /work0/Gate6.1/lmf_v3.0/includes/lmf_gate.h:28,
>                  from ../digits_hits/include/GateToLMF.hh:21,
>                  from src/GateToLMF.cc:23:
> /work0/Gate6.1/lmf_v3.0/includes/lmf.h:62: error: extra ‘;’
> In file included from /work0/Gate6.1/lmf_v3.0/includes/lmf_gate.h:28,
>                  from src/GateToLMF.cc:31:
> /work0/Gate6.1/lmf_v3.0/includes/lmf.h:62: error: extra ‘;’
> src/GateToLMF.cc: In member function ‘void 
> GateToLMF::buildLMFEventRecord()’:
> src/GateToLMF.cc:208: warning: format ‘%llu’ expects type ‘long 
> long unsigned int’, but argument 2 has type ‘long unsigned int’
> src/GateToLMF.cc: At global scope:
> src/GateToLMF.cc:584: warning: unused parameter ‘r’
> src/GateToLMF.cc:594: warning: unused parameter ‘event’
> /work0/Gate6.1/CLHEP/include/CLHEP/Units/PhysicalConstants.h:80: 
> warning: ‘CLHEP::electron_charge’ defined but not used
> make[1]: *** [../../tmp/Linux-g++/Gate/GateToLMF.o] Error 1
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `G4DynamicParticle::G4DynamicParticle(G4ParticleDefinition*, 
> CLHEP::Hep3Vector const&, double)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetEnergyBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetGateDigiBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `G4DynamicParticle::G4DynamicParticle(G4ParticleDefinition*, double, 
> CLHEP::Hep3Vector const&)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `TCanvasImp::ShowMembers(TMemberInspector&, char*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetGlobalXYZPosBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `G4HadronicInteraction::SetMaxEnergy(double, G4Element*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetGantryAxialPosBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetCoincidenceBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetEventIDBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetSourcePosBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetSourceIDBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetComptonBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `TTree::CopyEntries(TTree*, long long)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `TTree::ShowMembers(TMemberInspector&, char*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetNeighbourhoodOrder(int)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetOutputFileName(G4String)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetGantryAngularPosBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::GateToLMF(G4String const&, GateOutputMgr*, GateVSystem*, 
> DigiMode)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetRunIDBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetDetectorIDBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `non-virtual 
> thunk to TTree::ShowMembers(TMemberInspector&, char*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `TApplicationImp::ShowMembers(TMemberInspector&, char*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetNeighbourBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `non-virtual 
> thunk to TTree::ShowMembers(TMemberInspector&, char*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `G4HadronicInteraction::SetMaxEnergy(double, G4Material*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `G4DynamicParticle::G4DynamicParticle(G4ParticleDefinition*, 
> CLHEP::Hep3Vector const&)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `TTree::OptimizeBaskets(int, float, char const*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `G4HadronicInteraction::DeActivateFor(G4Material*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `G4HadronicInteraction::DeActivateFor(G4Element*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateCylindricalPETSystem::GateCylindricalPETSystem(G4String const&)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `G4HadronicInteraction::SetMinEnergy(double, G4Element*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `G4HadronicInteraction::SetMinEnergy(double, G4Material*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
> `GateToLMF::SetSourceXYZPosBool(bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `non-virtual 
> thunk to TTree::ShowMembers(TMemberInspector&, char*)'
> collect2: ld returned 1 exit status
>
> ------------------------------------------------------------------------
> *From:* Didier BENOIT <benoit at imnc.in2p3.fr>
> *To:* lupa euy <lupalagieuy at yahoo.com>
> *Cc:* "gate-users at lists.opengatecollaboration.org" 
> <gate-users at lists.opengatecollaboration.org>
> *Sent:* Thursday, October 13, 2011 1:14 AM
> *Subject:* Re: [Gate-users] error in installing gate 6.1
>
> Hi,
>
> Ok your configuration is good.
> Could you check if you have a problem during the compilation of Geant4 
> or ROOT? 'Undefined reference' means the functions, for instance 
> 'G4HadronicInteraction::DeActivateFor(G4Material*)' or 
> 'TTree::OptimizeBaskets(int, float, char const*)', are unknown during 
> the linking.
>
> Kind Regards,
> Didier
>
> On 10/11/2011 03:22 AM, lupa euy wrote:
>> No, I dont have any other error.. as far as I know..
>>
>> THe version of geant is 9.4.p01
>> CLHEP 2.1.0.1
>> root 5.28
>> lmf 3.0
>>
>> thanks
>>
>>
>> ------------------------------------------------------------------------
>> *From:* Didier BENOIT <benoit at imnc.in2p3.fr> 
>> <mailto:benoit at imnc.in2p3.fr>
>> *To:* lupa euy <lupalagieuy at yahoo.com> <mailto:lupalagieuy at yahoo.com>
>> *Cc:* "gate-users at lists.opengatecollaboration.org" 
>> <mailto:gate-users at lists.opengatecollaboration.org> 
>> <gate-users at lists.opengatecollaboration.org> 
>> <mailto:gate-users at lists.opengatecollaboration.org>
>> *Sent:* Tuesday, October 11, 2011 12:34 AM
>> *Subject:* Re: [Gate-users] error in installing gate 6.1
>>
>> Hi,
>>
>> Do you have other errors during the compilation? Or it's just during the
>> linking? And what is the version of geant4, CLHEP, and root?
>>
>> Kind Regards,
>> Didier Benoit
>>
>> On 10/07/2011 12:57 PM, lupa euy wrote:
>> >
>> >
>> >
>> >
>> > dear everyone..
>> >
>> > I am trying to install Gate6.1
>> >
>> > I have installed everything succesfully, except when I 'make' GATE, 
>> there are some errors comment, something to do with libGate.so 
>> <http://libGate.so>
>> > I have source the file setenvforgate.sh <http://setenvforgate.sh>
>> > I have checked in that directory, and find that file does exist there..
>> >
>> > Anybody have any idea what is going on ???
>> >
>> > below is the comment..
>> >
>> > regards
>> >
>> >
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `G4DynamicParticle::G4DynamicParticle(G4ParticleDefinition*,
>> >  CLHEP::Hep3Vector const&, double)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `G4DynamicParticle::G4DynamicParticle(G4ParticleDefinition*, double, 
>> CLHEP::Hep3Vector const&)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `TCanvasImp::ShowMembers(TMemberInspector&,
>> >  char*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `G4HadronicInteraction::SetMaxEnergy(double, G4Element*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `TTree::CopyEntries(TTree*, long long)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `TTree::ShowMembers(TMemberInspector&, char*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `non-virtual thunk to TTree::ShowMembers(TMemberInspector&, char*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `TApplicationImp::ShowMembers(TMemberInspector&, char*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `non-virtual thunk to TTree::ShowMembers(TMemberInspector&, char*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `G4HadronicInteraction::SetMaxEnergy(double, G4Material*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `G4DynamicParticle::G4DynamicParticle(G4ParticleDefinition*,
>> >  CLHEP::Hep3Vector const&)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `TTree::OptimizeBaskets(int, float, char const*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `G4HadronicInteraction::DeActivateFor(G4Material*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `G4HadronicInteraction::DeActivateFor(G4Element*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `G4HadronicInteraction::SetMinEnergy(double, G4Element*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `G4HadronicInteraction::SetMinEnergy(double, G4Material*)'
>> > ./tmp/Linux-g++/Gate/libGate.so: undefined reference to 
>> `non-virtual thunk to TTree::ShowMembers(TMemberInspector&, char*)'
>> > collect2: ld returned 1 exit status
>> > make: *** [bin/Linux-g++/Gate] Error 1
>> > _______________________________________________
>> > 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
>>
>>
>> -- 
>> ----------------------------------------------------------------
>> Didier BENOIT, GATE Engineer
>> Imagerie et Modélisation en Neurobiologie et Cancérologie (IMNC)
>> IMNC – UMR 8165 CNRS – Université Paris 7 – Université Paris 11
>> Campus d’Orsay
>> Bâtiment 440
>> 91406 ORSAY Cedex
>>
>> Tél : (33) 1 69 15 68 76
>> E-mail : benoit at imnc.in2p3.fr <mailto:benoit at imnc.in2p3.fr>
>> http://www.imnc.in2p3.fr
>> ----------------------------------------------------------------
>>
>>
>>
>
>
> -- 
> ----------------------------------------------------------------
> Didier BENOIT, GATE Engineer
> Imagerie et Modélisation en Neurobiologie et Cancérologie (IMNC)
> IMNC – UMR 8165 CNRS – Université Paris 7 – Université Paris 11
> Campus d’Orsay
> Bâtiment 440
> 91406 ORSAY Cedex
>
> Tél : (33) 1 69 15 68 76
> E-mail :benoit at imnc.in2p3.fr  <mailto:benoit at imnc.in2p3.fr>
> http://www.imnc.in2p3.fr
> ----------------------------------------------------------------
>
>


-- 
----------------------------------------------------------------
Didier BENOIT, GATE Engineer
Imagerie et Modélisation en Neurobiologie et Cancérologie (IMNC)
IMNC – UMR 8165 CNRS – Université Paris 7 – Université Paris 11
Campus d’Orsay
Bâtiment 440
91406 ORSAY Cedex

Tél : (33) 1 69 15 68 76
E-mail : benoit at imnc.in2p3.fr
http://www.imnc.in2p3.fr
----------------------------------------------------------------



More information about the Gate-users mailing list