Hi,<br><br>I made the modification in the variables.gmk file (that is used by the GNUmakefile of Gate).<br>Just replace the old file by this new one and recompile Gate.<br><br>(I just replaced the manual ROOT library links by a call of the program root-config with the option --libs).<br>
<br>Hope it will work,<br>Simon<br><br><div class="gmail_quote">2008/12/19 TienGarry <span dir="ltr"><<a href="mailto:gjtian@hotmail.com">gjtian@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
When I make GATE4.0 I get the link errors:<br><br>Linking Gate ...<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::ReadArray(double*&)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::SetReadParam(int)'<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TThread::TThread(char const*, void* (*)(void*), void*, TThread::EPriority)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteArray(float const*, int)'<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `ROOT::Math::GaussIntegrator::GaussIntegrator()'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `typeinfo for TSQLResult'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `vtable for TSQLRow'<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::GetLastProcessID(TRefTable*) const'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::GetTRefExecId()'<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::ErfInverse(double)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteObjectClass(void const*, TClass const*)'<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::Beta(double, double)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::ReadVersion(unsigned int*, unsigned int*, TClass const*)'<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteArray(long const*, int)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TThread::Run(void*)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteProcessID(TProcessID*)'<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `ROOT::Math::BrentMinimizer1D::~BrentMinimizer1D()'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteVersionMemberWise(TClass const*, bool)'<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TKey::Hash() const'<br>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `gRandom'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `typeinfo for TSQLRow'<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `ROOT::Math::RootFinder::RootFinder(ROOT::Math::RootFinder::EType)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `int TStreamerInfo::ReadBuffer<char**>(TBuffer&, char** const&, int, int, int, int)'<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::ReadStaticArray(long*)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TKey::Streamer(TBuffer&)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TStreamerInfo::ReadBufferClones(TBuffer&, TClonesArray*, int, int, int)'<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TMutex::TMutex(bool)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteObject(TObject const*)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteArray(int const*, int)'<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::BesselK0(double)'<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TMessage::Class()'<br>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::StruveH0(double)'<br>
collect2: ld returned 1 exit status<br>make: *** [bin/Linux-g++/Gate] Error 1<br><br>I search this error, some got the same errors with me, when he make a program based on ROOT, <br><br><a href="http://root.cern.ch/phpBB2/viewtopic.php?t=7404&view=next&sid=da48524ef4f7180111d474d40b64e1f8" target="_blank">http://root.cern.ch/phpBB2/viewtopic.php?t=7404&view=next&sid=da48524ef4f7180111d474d40b64e1f8</a><br>
<br>Someone answer the question like this:<br><br><span>You need to link against the libraries you use. Call `root-config --libs` instead of -lWhatever in your Makefile.
<br>
<br>
How can I solve it for gate, how to modify gate makefile? <br>Thx.<br></span><br><hr>To: <a href="mailto:gjtian@hotmail.com" target="_blank">gjtian@hotmail.com</a>; <a href="mailto:gate.stute@gmail.com" target="_blank">gate.stute@gmail.com</a><div class="Ih2E3d">
<br>Subject: Re : [Gate-users] GATE and GEANT Install<br></div>Date: Thu, 18 Dec 2008 07:58:50 -0500<br>From: <a href="mailto:dounia84@aol.com" target="_blank">dounia84@aol.com</a><div class="Ih2E3d"><br>CC: <a href="mailto:gate-users@lists.healthgrid.org" target="_blank">gate-users@lists.healthgrid.org</a><br>
<br>
</div><div><div></div><div class="Wj3C7c"><div> <font face="Arial, Helvetica, sans-serif">Hello,<br>
i am having some pb with ecat7 output. Although gate tells me that ecat7 output is enabled i still get :<br>
</font></div>
Output module: 'sinogram'<br>
>> Job: build a set of 2D sinograms from a PET simulation<br>
>> Is enabled ? Yes<br>
>> Number of crystals per crystal ring: 0<br>
>> Number of crystal rings: 0<br>
>> Number of radial sinogram bins: 0<br>
>> Filled ? No<br>
>> Attached to system: systems/ecat<br>
>> Input data: finalCoinc/gate/output/ecat7/enable<br>
***** COMMAND NOT FOUND </gate/output/ecat7/enable> *****<br>
<br>
***** Batch is interupted!! *****<br>
<font face="Arial, Helvetica, sans-serif"><br>
<br>
I don`t get why i have zero crystals...<br>
</font>
<div> <font face="Arial, Helvetica, sans-serif">If you had this problem already please tell me what you did to solve it. It has been a long long time that i am stuck with this!<br>
thank you in advance.<br>
Dounia Taleb.<br>
</font></div><br></div></div><div class="Ih2E3d"><hr>使用新一代 Windows Live Messenger 轻松交流和共享! <a href="http://im.live.cn/" target="_blank">立刻下载!</a></div></div>
</blockquote></div><br>