Hi Sonal,<br><br>Try the following:<br>Open the "GNUmakefile" in your gate home directory and edit the following block:<br><br>=================================================<br>ifdef G4ANALYSIS_USE_ROOT<br>CPPFLAGS += -DG4ANALYSIS_USE_ROOT -D_REENTRANT -I$(ROOTSYS)/include<br>
ifdef G4ANALYSIS_USE_ROOT_PLOTTER<br>CPPFLAGS += -DG4ANALYSIS_USE_ROOT_PLOTTER<br>endif<br>EXTRALIBS += -L$(ROOTSYS)/lib \<br>-lCore -lCint \<br>-lHist -lGraf -lGraf3d -lGpad \<br>-lTree -lRint -lPostscript \<br>-lMatrix -lPhysics \<br>
-lm -ldl -lpthread -rdynamic <br>endif<br>==================================================<br><br>it should look like this:<br>==================================================<br>ifdef G4ANALYSIS_USE_ROOT<br>CPPFLAGS += -DG4ANALYSIS_USE_ROOT -D_REENTRANT -I$(ROOTSYS)/include<br>
ifdef G4ANALYSIS_USE_ROOT_PLOTTER<br>CPPFLAGS += -DG4ANALYSIS_USE_ROOT_PLOTTER<br>endif<br>EXTRALIBS += -L$(ROOTSYS)/lib \<br>-lCore -lCint \<br>-lHist -lGraf -lGraf3d -lGpad \<br>-lTree -lRint -lPostscript \<br>-lMatrix -lPhysics \<br>
-lm -ldl -lpthread -rdynamic \<br>-lRIO -lRMySQL -lNet<br>endif<br>=================================================<br><br>This worked for me.<br>Good luck!<br>Georgi<br><br><div><span class="gmail_quote">On 4/14/08, <b class="gmail_sendername">Sonal Ambwani</b> <<a href="mailto:ambwani@bu.edu">ambwani@bu.edu</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Dear Gate users :<br><br> I have been trying to compile GATE on a 64bit redhat linux environment, and the following are the errors that I get when the make process terminates :<br><br> Linking Gate ...<br> /home/sonal/gate/tmp/Linux-g++/Gate/libGate.a(GateHitFileReader.o)(.text+0x39c): In function `GateHitFileReader::PrepareAcquisition()':<br>
GateHitFileReader.cc: undefined reference to `TFile::TFile(char const*, char const*, char const*, int)'<br> /home/sonal/gate/tmp/Linux-g++/Gate/libGate.a(GateToRoot.o)(.text+0x223c): In function `GateToRoot::RecordBeginOfAcquisition()':<br>
GateToRoot.cc: undefined reference to `TFile::TFile(char const*, char const*, char const*, int)'<br> /home/sonal/gate/tmp/Linux-g++/Gate/libGate.a(GateToRoot.o)(.text+0x244e):GateToRoot.cc: undefined reference to `TFile::TFile(char const*, char const*, char const*, int)'<br>
/home/sonal/gate/tmp/Linux-g++/Gate/libGate.a(GateToRoot.o)(.text+0x2ef5): In function `GateToRoot::RecordVoxels(GateVGeometryVoxelStore*)':<br> GateToRoot.cc: undefined reference to `TFile::TFile(char const*, char const*, char const*, int)'<br>
/home/sonal/root/lib/libHist.so: undefined reference to `TMath::Nint(double)'<br> /home/sonal/root/lib/libTree.so: undefined reference to `vtable for TSQLRow'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TFileCacheRead::TFileCacheRead(TFile*, int)'<br>
/home/sonal/root/lib/libHist.so: undefined reference to `ROOT::Math::GaussIntegratorOneDim::Integral(double, double)'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TBufferFile::ReadArray(double*&)'<br>
/home/sonal/root/lib/libTree.so: undefined reference to `TBufferFile::ReadArray(int*&)'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TBufferFile::ReadStaticArray(char*)'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TBufferFile::WriteArray(bool const*, int)'<br>
/home/sonal/root/lib/libHist.so: undefined reference to `TMath::ErfInverse(double)'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TBufferFile::ReadArrayFloat16(float*&, TStreamerElement*)'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TBufferFile::ReadArray(float*&)'<br>
.<br> .<br> .<br> .<br><br> /home/sonal/root/lib/libGraf3d.so: undefined reference to `TMath::Normalize(float*)'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TBufferFile::ReadFloat16(float*, TStreamerElement*)'<br>
/home/sonal/root/lib/libTree.so: undefined reference to `TBufferFile::ReadStaticArray(int*)'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TBufferFile::ReadStaticArray(short*)'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TFile::GetCacheRead() const'<br>
/home/sonal/root/lib/libHist.so: undefined reference to `ROOT::Math::GaussLegendreIntegrator::~GaussLegendreIntegrator()'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TSQLRow::Streamer(TBuffer&)'<br>
/home/sonal/root/lib/libHist.so: undefined reference to `ROOT::Math::RichardsonDerivator::~RichardsonDerivator()'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TBufferFile::CheckObject(void const*, TClass const*)'<br>
/home/sonal/root/lib/libTree.so: undefined reference to `int TStreamerInfo::ReadBuffer<char**>(TBuffer&, char** const&, int, int, int, int)'<br> /home/sonal/root/lib/libTree.so: undefined reference to `TBufferFile::DecrementLevel(TVirtualStreamerInfo*)'<br>
/home/sonal/root/lib/libTree.so: undefined reference to `TFileCacheRead::TFileCacheRead()'<br> /home/sonal/root/lib/libHist.so: undefined reference to `TMath::Gaus(double, double, double, bool)'<br> /home/sonal/root/lib/libHist.so: undefined reference to `TMath::Gamma(double, double)'<br>
/home/sonal/root/lib/libHist.so: undefined reference to `TRandom3::Rndm(int)'<br> /home/sonal/root/lib/libGraf.so: undefined reference to `ROOT::Fit::BinData::Add(double, double, double, double, double)'<br> /home/sonal/root/lib/libTree.so: undefined reference to `typeinfo for TEmulatedCollectionProxy'<br>
collect2: ld returned 1 exit status<br> make: *** [/home/sonal/gate/bin/Linux-g++/Gate] Error 1<br><br><br> Can someone pinpoint the cause of this failure?<br> Thanks.<br> Sonal<br><br><br><br> Quoting Wolfram Stiller <<a href="mailto:w.stiller@dkfz-heidelberg.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">w.stiller@dkfz-heidelberg.de</a>>:<br>
<br><blockquote class="gmail_quote" style="border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex"> Dear Sonal,<div><span class="e" id="q_1194dd03050af19e_1"><br><br> On Friday 11 April 2008 23:10, Sonal Ambwani wrote:<br>
<br><blockquote class="gmail_quote" style="border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex"> I am getting the following errors during the make process of Gate<br> installation :<br>
<br> Linking Gate ...<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXt.so when<br> searching for -lXt<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXt.a when<br> searching for -lXt<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libGLU.so when<br>
searching for -lGLU<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libGLU.a when<br> searching for -lGLU<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXmu.so when<br> searching for -lXmu<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXmu.a when<br>
searching for -lXmu<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXt.so when<br> searching for -lXt<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXt.a when<br> searching for -lXt<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when<br>
searching for -lXext<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.a when<br> searching for -lXext<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when<br> searching for -lX11<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when<br>
searching for -lX11<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libSM.so when<br> searching for -lSM<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libSM.a when<br> searching for -lSM<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libICE.so when<br>
searching for -lICE<br> /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libICE.a when<br> searching for -lICE<br><br><br> Please help me fix this issue. It's apparent that there is a clash<br> between the 32 bit and the 64 bit libraries...<br>
</blockquote><br></span></div> these messages are no errors and just tell you that the 32bit libraries (which<br> by default are installed in addition to the 64bit libraries when installing a<br> 64bit linux system) where skipped when linking the program - you probably<br>
have a 64bit linux system installed. If the 32bit libraries are in your<br> library path the linker will find these, notice they are 32 bit (and<br> thus "incompatible") and link against the 64bit libraries (if they are in<br>
your library path).<span class="q"><br><br><blockquote class="gmail_quote" style="border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex"> but I am not sure how to go about correcting it.<br>
</blockquote><br></span> Thus there is no need to correct anything, just as long as the linking process<br> does not return any errors. In case you get an error message from the linker,<br> you should post that one instead, the lines above are just an information<br>
from the linker.<br><br><blockquote class="gmail_quote" style="border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex"> Thanks in advance,<br></blockquote><br> Hope it helps.<br><br>
Regards<br><br> Wolf<br><br><br><br> :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::<br><br> Dipl. Phys. Wolfram Stiller<br><br> German Cancer Research Center (DKFZ)<br> Dept. of Medical Physics in Radiology (E020)<br>
Im Neuenheimer Feld 280<br> D-69120 Heidelberg<br> Germany<br><br> Tel.: +49 (0) 6221 42 2468<br> Fax: +49 (0) 6221 42 2572<br><br> E-mail: <a href="mailto:w.stiller@dkfz.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">w.stiller@dkfz.de</a><br>
<a href="mailto:wolfram.stiller@dkfz.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">wolfram.stiller@dkfz.de</a><br><br><br><br> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte<br>
Informationen. Wenn Sie nicht der richtige Adressat sind oder<br> diese E-Mail irrtümlich erhalten haben, informieren Sie bitte<br> sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte<br> Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht<br>
gestattet.<br><br> This e-mail may contain confidential and/or privileged information.<br> If you are not the intended recipient (or have received this e-mail<br> in error) please notify the sender immediately and destroy this e-mail.<br>
Any unauthorized copying, disclosure or distribution of the material<br> in this e-mail is strictly forbidden.<br><br></blockquote><br><br><br> Sonal Ambwani<br><br> Dept. of Electrical and Computer Engineering<br> Boston University<div>
<span class="e" id="q_1194dd03050af19e_5"><br><br> _______________________________________________<br> Gate-users mailing list<br><a href="mailto:Gate-users@lists.healthgrid.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Gate-users@lists.healthgrid.org</a><br>
<a href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br></span></div></blockquote>
</div><br>