[Gate-users] Problem Compiling Gate 6.2 on Ubuntu 12.04
Didier Benoit
benoit at imnc.in2p3.fr
Wed Sep 26 21:58:08 CEST 2012
Hi Carlos,
In the file 'source/arf/src/GateARFTableMgr.cc' at the line 227, try to replace 'ostream' by 'std::ostream', your compiler is a little aggressive :-), I've not this problem on my Ubuntu 12.04.
Kind regards,
Didier
On Sep 26, 2012, at 9:45 PM, Carlos Uribe <carluri at phas.ubc.ca> wrote:
> Tried that as well and still getting the same errors.
>
> On Wed, Sep 26, 2012 at 12:07 PM, Geron Bindseil <geron9 at gmail.com> wrote:
> Hi Carlos,
>
> The Gate compilation needs to be done with a single sequential thread, so you will probably find it works if you just run 'make' without the -j4 flag.
>
> Good luck,
> Geron
>
> ---
>
> Geron Bindseil
> PhD Candidate, Physics
> Western University
> London, Ontario, Canada
> gbindsei at uwo.ca
>
> On Wed, Sep 26, 2012 at 2:48 PM, Carlos Uribe <carluri at phas.ubc.ca> wrote:
> Hello Gate users,
>
> I'm trying to compile gate on a 64 bit ubuntu 12.04 machine...I'm getting the following errors that I don't know how to solve. any help is really appreciated.
>
> make -j4
> ....
> ....
>
>
> Scanning dependencies of target Gate
> [ 7%] [ 7%] [ 7%] Building CXX object CMakeFiles/Gate.dir/source/arf/src/GateARFTableMgr.cc.o
> Building CXX object CMakeFiles/Gate.dir/Gate.cc.o
> [ 7%] Building CXX object CMakeFiles/Gate.dir/source/arf/src/GateARFSDMessenger.cc.o
> Building CXX object CMakeFiles/Gate.dir/source/arf/src/GateARFTableMgrMessenger.cc.o
> [ 7%] Building CXX object CMakeFiles/Gate.dir/source/arf/src/GateARFSD.cc.o
> /opt/simulation/gate_v6.2/source/arf/src/GateARFTableMgr.cc: In member function ‘void GateARFTableMgr::SaveARFToBinaryFile()’:
> /opt/simulation/gate_v6.2/source/arf/src/GateARFTableMgr.cc:227:1: error: ‘ofstream’ was not declared in this scope
> /opt/simulation/gate_v6.2/source/arf/src/GateARFTableMgr.cc:227:1: note: suggested alternative:
> /usr/include/c++/4.6/iosfwd:162:34: note: ‘std::ofstream’
> /opt/simulation/gate_v6.2/source/arf/src/GateARFTableMgr.cc:227:10: error: expected ‘;’ before ‘dest’
> /opt/simulation/gate_v6.2/source/arf/src/GateARFTableMgr.cc:228:1: error: ‘dest’ was not declared in this scope
> /opt/simulation/gate_v6.2/source/arf/src/GateARFTableMgr.cc: In member function ‘void GateARFTableMgr::LoadARFFromBinaryFile(G4String)’:
> /opt/simulation/gate_v6.2/source/arf/src/GateARFTableMgr.cc:303:3: error: ‘ifstream’ was not declared in this scope
> /opt/simulation/gate_v6.2/source/arf/src/GateARFTableMgr.cc:303:3: note: suggested alternative:
> /usr/include/c++/4.6/iosfwd:159:34: note: ‘std::ifstream’
> /opt/simulation/gate_v6.2/source/arf/src/GateARFTableMgr.cc:303:12: error: expected ‘;’ before ‘dest’
> /opt/simulation/gate_v6.2/source/arf/src/GateARFTableMgr.cc:304:3: error: ‘dest’ was not declared in this scope
> /opt/simulation/clhep_2.1.1.0/CLHEP/include/CLHEP/Units/PhysicalConstants.h: At global scope:
> /opt/simulation/clhep_2.1.1.0/CLHEP/include/CLHEP/Units/PhysicalConstants.h:80:21: warning: ‘CLHEP::electron_charge’ defined but not used [-Wunused-variable]
> /opt/simulation/clhep_2.1.1.0/CLHEP/include/CLHEP/Random/Randomize.h:68:12: warning: ‘CLHEP::HepRandomGenActive’ defined but not used [-Wunused-variable]
> make[2]: *** [CMakeFiles/Gate.dir/source/arf/src/GateARFTableMgr.cc.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
> make: *** [all] Error 2
>
> thanks,
>
> --
> Carlos F Uribe
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
> --
> Carlos F Uribe
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
----------------------------------------------------------------
Didier BENOIT, PhD Student
Imagerie et Modélisation en Neurobiologie et Cancérologie (IMNC)
QIM - IMNC/IN2P3 CNRS – UMR 8165 – Université Paris VII-XI
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
----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20120926/936b4b5d/attachment.html>
More information about the Gate-users
mailing list