[Gate-users] Problems with compiling GATE

Samuel BURG samuel_burg at yahoo.fr
Mon Jul 28 10:23:48 CEST 2008


The best solution is to downgarde GCC to 4.1.x.
Then you can compil all the stuff for Gate without any error.
It's better to use ROOT 5.14 for Gate 3.1.2

I've allready do that on Ubuntu 8.04 TSL x64, so I know the relevent packadges are availaible.

Best regards,

Samuel Burg




----- Message d'origine ----
De : Zhibin Huang <zxh6 at case.edu>
À : franklin pereira <pnicholasf at gmail.com>
Cc : gate-users at lists.healthgrid.org
Envoyé le : Vendredi, 25 Juillet 2008, 21h06mn 36s
Objet : Re: [Gate-users] Problems with compiling GATE


Recently I successfully installed Gate under Ubuntu8.04 when I used ROOT5.19. It seems that in Ubntu8.04, ROOT5.14 can't be compiled successfully.

Before you install GATE, you have to modify the GNUmake file. As a reference, please see the attachment and modify the path properly. My webpage may also be useful for both Gate installation and Ubuntu8.04 configuration: 
please search for GATE under the link:
https://filer.case.edu/~zxh6/data/daily-log


Good luck!

On Fri, Jul 25, 2008 at 1:43 PM, franklin pereira <pnicholasf at gmail.com> wrote:

Hi,

I have a Dell Vostro ( intel core duo processor) with Ubuntu 8.04 installed.
The default version of the gcc compiler is 4.2.3

I recently downloaded Gate3.1.2, Geant4 (version 9.0), ROOT (5.14).

Geant4 compiled without any problems.

However, I am having problems with compiling ROOT-5.14.
I get tons of warnings and then the compilation aborts with the
following error message:

*************************************************************************************************************************
>>  bin/rmkdepend -R -fcint/src/gcc3strm.d -Y -w 1000 -- -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude  -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -Icint/src -pthread -Icint/lib/gcc3strm -D__cplusplus -- cint/src/gcc3strm.cxx
g++ -O  -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude
-DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT
-DG__REDIRECTIO -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO
-DG__CINTBODY -Icint/src -pthread -Icint/lib/gcc3strm -o
cint/src/gcc3strm.o -c cint/src/gcc3strm.cxx
cint/src/gcc3strm.cxx: In function 'int G__G__stream_7_7_0(G__value*,
const char*, G__param*, int)':
cint/src/gcc3strm.cxx:311: error: 'class std::fpos<__mbstate_t>' has
no member named 'operator=='
cint/src/gcc3strm.cxx: In function 'int G__G__stream_7_8_0(G__value*,
const char*, G__param*, int)':
cint/src/gcc3strm.cxx:317: error: 'class std::fpos<__mbstate_t>' has
no member named 'operator!='
make: *** [cint/src/gcc3strm.o] Error 1
*************************************************************************************************************************


ROOT 5.20, however, compiles cleanly, but gate will not compile with
this version of ROOT as is cannot find the proper function
declarations for the various ROOT functions ( the header files are in
/root/include and this is passed on to the g++ compiler correctly
in the GATE makefile ).


A sample of these error messages are:

**************************************************************************************************************
>>Using global libraries ...
Linking Gate ...
/opt/Geant4/geant4.9.0.p02/tmp/Linux-g++/Gate/libGate.a(GateHitFileReader.o):
In function `GateHitFileReader::PrepareAcquisition()':
GateHitFileReader.cc:(.text+0x102a): undefined reference to
`TFile::TFile(char const*, char const*, char const*, int)'
/opt/Geant4/geant4.9.0.p02/tmp/Linux-g++/Gate/libGate.a(GateToRoot.o):
In function `GateToRoot::RecordVoxels(GateVGeometryVoxelStore*)':
GateToRoot.cc:(.text+0xe47): undefined reference to `TFile::TFile(char
const*, char const*, char const*, int)'
/opt/Geant4/geant4.9.0.p02/tmp/Linux-g++/Gate/libGate.a(GateToRoot.o):
In function `GateToRoot::RecordBeginOfAcquisition()':
GateToRoot.cc:(.text+0x3fd3): undefined reference to
`TFile::TFile(char const*, char const*, char const*, int)'
GateToRoot.cc:(.text+0x423b): undefined reference to
`TFile::TFile(char const*, char const*, char const*, int)'
/opt/root/lib/libTree.so: undefined reference to
`TFileCacheRead::TFileCacheRead(TFile*, int)'
/opt/root/lib/libTree.so: undefined reference to `TFile::GetCacheRead() const'
/opt/root/lib/libTree.so: undefined reference to
`TBufferFile::WriteClones(TClonesArray*, int)'
/opt/root/lib/libTree.so: undefined reference to
`TBufferFile::WriteArray(float const*, int)'
/opt/root/lib/libTree.so: undefined reference to `TSQLRow::Streamer(TBuffer&)'
/opt/root/lib/libTree.so: undefined reference to
`TBufferFile::WriteVersion(TClass const*, bool)'
/opt/root/lib/libHist.so: undefined reference to
`ROOT::Fit::BinData::Initialize(unsigned int, unsigned int,
ROOT::Fit::BinData::ErrorType)'
/opt/root/lib/libTree.so: undefined reference to `typeinfo for TSQLResult'
/opt/root/lib/libTree.so: undefined reference to
`TBufferFile::ReadObject(TClass const*)'
/opt/root/lib/libTree.so: undefined reference to `TKey::Create(int, TFile*)'
********************************************************************************************************************


My guess is that the function declarations in ROOT5.20 have changed
from version 5.14, therefore the conflict.
However, I am clueless regarding the compilation errors generated
while trying to compile ROOT-5.14.
Is this due to the newer version of gcc that comes with the Ubuntu OS
? I am at a loss and would appreciate help regarding this.

Thanks a lot,
Franklin.
_______________________________________________
Gate-users mailing list
Gate-users at lists.healthgrid.org
http://lists.healthgrid.org/mailman/listinfo/gate-users


      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20080728/b006074b/attachment.htm>


More information about the Gate-users mailing list