[Gate-users] Re : Trouble Compiling gate_v5_0_0_p1
Samuel BURG
samuel_burg at yahoo.fr
Thu Apr 8 16:47:32 CEST 2010
Hi,
This will force your system to use version 4.2 (it will also disable version 4.3.3) :
cd /usr/bin
sudo rm gcc
sudo rm cc
sudo rm g++
sudo rm cpp
sudo ln -s g++-4.2 g++
sudo ln -s gcc-4.2 gcc
sudo ln -s gcc-4.2 cc
sudo ln -s cpp-4.2 cpp
Use similar instructions to swtich back to 4.3.3 sim-links if you need.
best regards,
-----------------------------------------------------------
Samuel Burg
Mail : <samuel_burg at yahoo.fr>
-----------------------------------------------------------
"Aw, come on, who would be so stupid as to insert a cast
to make an error go away without actually fixing the error?"
Apparently everyone.
-- Raymond Chen --
-----------------------------------------------------------
________________________________
De : Fares Alhassen <fares.alhassen at radiology.ucsf.edu>
À : "gate-users at lists.opengatecollaboration.org" <gate-users at lists.opengatecollaboration.org>
Envoyé le : Mer 7 avril 2010, 20 h 29 min 38 s
Objet : Re: [Gate-users] Trouble Compiling gate_v5_0_0_p1
Dear all,
I think I have the same problem described below. I installed gcc-4.2 and
g++-4.2 on my system, which currently has 4.3.3 versions of both. I had
installed non-GATE packages using I think 4.2, which is why I have GATE5
working properly on my system.
However, I'm not sure how to change the makefiles for GATE so that it uses
g++-4.2 instead of g++ (the latest version on my system). Does anyone know
where the executable is defined?
Sincerely,
Fares
On 3/31/10 11:51 PM, "Bohnenberger, Hendrik"
<Hendrik.Bohnenberger at uniklinikum-saarland.de> wrote:
> Hello Melissa
>
> I had some problems on compiling gate_v5.0.0_p01, too. I installed gate on
> Ubuntu 9.10. I could solve this problems by downgrading my compiler to one of
> the versions mentioned on opengatecollaboration homepage (gcc 3.2 to 4.2).
> After downgrading the gcc i could follow the GATE5.0.0 Installation giude for
> ubuntu from Bryan MacIntosh
> (//www.opengatecollaboration.org/fileadmin/documents/community/source-code/Gat
> e5_installguide.tar.gz ) and everything went well.
> But remember you have to reinstall all the other components (Geant4,
> clhep,....) too.
> Maby this can solve your problems.
>
>
> greetz
>
> Hendrik
> ________________________________________
> Von: gate-users-bounces at lists.opengatecollaboration.org
> [gate-users-bounces at lists.opengatecollaboration.org] im Auftrag von Melissa
> Freedenberg [mfreeden at ucdavis.edu]
> Gesendet: Mittwoch, 31. März 2010 23:15
> An: gate-users at lists.opengatecollaboration.org
> Betreff: [Gate-users] Trouble Compiling gate_v5_0_0_p1
>
> Hello,
>
> I am a new user and have been working on compiling gate_v5_0_0_p1 for
>
> some time now. I am using Kubuntu 9.10.
>
>
>
> The other components I have installed are as follows:
>
> root 5.18
>
> geant4.9.2.p03
>
> clhep-2.0.3.2
>
> lmf_v3.0
>
> gcc v4.4.1
>
>
>
> I am receiving the following errors, and was hoping someone might have
>
> encountered the same errors and may be able to offer some advice in
>
> resolving them. I have looked at past mailing list archives and have
>
> found some problems which are similar, but do not appear to be the
>
> same. Thank you!
>
> Entering source/arf ...
>
> make[1]: Nothing to be done for `obj'.
>
> source/arf finished
>
> Entering source/geometry ...
>
> make[1]: Nothing to be done for `obj'.
>
> source/geometry finished
>
> Entering source/digitizer ...
>
> make[1]: Nothing to be done for `obj'.
>
> source/digitizer finished
>
> Entering source/output ...
>
> make[1]: Nothing to be done for `obj'.
>
> source/output finished
>
> Entering source/physics ...
>
> Compiling GateSource.cc ...
>
> src/GateSource.cc: In member function Œvirtual G4int
>
> GateSource::GeneratePrimaries(G4Event*)¹:
>
> src/GateSource.cc:336: error: ŒGateToRoot¹ was not declared in this scope
>
> src/GateSource.cc:336: error: ŒgateToRoot¹ was not declared in this scope
>
> src/GateSource.cc:336: error: expected primary-expression before Œ)¹ token
>
> make[1]: *** [../../tmp/Linux-g++/Gate/GateSource.o] Error 1
>
> source/physics finished
>
> Entering source/voxel ...
>
> make[1]: Nothing to be done for `obj'.
>
> source/voxel finished
>
> Entering source/mandatory_G4_classes ...
>
> Making dependency for file src/GateEventAction.cc ...
>
> src/GateEventAction.cc:43:2: error: #endif without #if
>
> Compiling GateEventAction.cc ...
>
> src/GateEventAction.cc:43:2: error: #endif without #if
>
> src/GateEventAction.cc:41: error: Œifdef¹ does not name a type
>
> src/GateEventAction.cc:66: warning: unused parameter Œevt¹
>
> src/GateEventAction.cc: In member function Œvirtual void
>
> GateEventAction::EndOfEventAction(const G4Event*)¹:
>
> src/GateEventAction.cc:121: error: ŒGateToRoot¹ was not declared in this
> scope
>
> src/GateEventAction.cc:121: error: ŒgateToRoot¹ was not declared in this
> scope
>
> src/GateEventAction.cc:121: error: expected primary-expression before Œ)¹
> token
>
> make[1]: *** [../../tmp/Linux-g++/Gate/GateEventAction.o] Error 1
>
> source/mandatory_G4_classes finished
>
> Entering source/management ...
>
> Compiling GateAnalysis.cc ...
>
> src/GateAnalysis.cc: In member function Œvirtual void
>
> GateAnalysis::RecordEndOfEvent(const G4Event*)¹:
>
> src/GateAnalysis.cc:316: error: ŒGateToRoot¹ was not declared in this scope
>
> src/GateAnalysis.cc:316: error: ŒgateToRoot¹ was not declared in this scope
>
> src/GateAnalysis.cc:316: error: expected primary-expression before Œ)¹ token
>
> src/GateAnalysis.cc:317: error: ŒComptonRayleighData¹ was not declared
>
> in this scope
>
> src/GateAnalysis.cc:317: error: expected Œ;¹ before ŒaCRData¹
>
> src/GateAnalysis.cc:318: error: ŒaCRData¹ was not declared in this scope
>
> src/GateAnalysis.cc:333: error: ŒGateToRoot¹ was not declared in this scope
>
> src/GateAnalysis.cc:333: error: ŒgateToRoot¹ was not declared in this scope
>
> src/GateAnalysis.cc:333: error: expected primary-expression before Œ)¹ token
>
> src/GateAnalysis.cc:334: error: ŒComptonRayleighData¹ was not declared
>
> in this scope
>
> src/GateAnalysis.cc:334: error: expected Œ;¹ before ŒaCRData¹
>
> src/GateAnalysis.cc:335: error: ŒaCRData¹ was not declared in this scope
>
> make[1]: *** [../../tmp/Linux-g++/Gate/GateAnalysis.o] Error 1
>
> source/management finished
>
> Creating/replacing object files in
>
> /home/melissa/software/geant4.9.2.p03//tmp/Linux-g++/Gate/libGate.a
>
> ...
>
> ar: creating
> /home/melissa/software/geant4.9.2.p03//tmp/Linux-g++/Gate/libGate.a
>
> ar: /home/melissa/software/geant4.9.2.p03//tmp/Linux-g++/Gate/*.o: No
>
> such file or directory
>
> make: ***
> [/home/melissa/software/geant4.9.2.p03//tmp/Linux-g++/Gate/libGate.a]
>
> Error 1
> _______________________________________________
> 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
_______________________________________________
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