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">&lt;<a href="mailto:gjtian@hotmail.com">gjtian@hotmail.com</a>&gt;</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*&amp;)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::SetReadParam(int)&#39;<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TThread::TThread(char const*, void* (*)(void*), void*, TThread::EPriority)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteArray(float const*, int)&#39;<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `ROOT::Math::GaussIntegrator::GaussIntegrator()&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `typeinfo for TSQLResult&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `vtable for TSQLRow&#39;<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::GetLastProcessID(TRefTable*) const&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::GetTRefExecId()&#39;<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::ErfInverse(double)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteObjectClass(void const*, TClass const*)&#39;<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::Beta(double, double)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::ReadVersion(unsigned int*, unsigned int*, TClass const*)&#39;<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteArray(long const*, int)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TThread::Run(void*)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteProcessID(TProcessID*)&#39;<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `ROOT::Math::BrentMinimizer1D::~BrentMinimizer1D()&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteVersionMemberWise(TClass const*, bool)&#39;<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TKey::Hash() const&#39;<br>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `gRandom&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `typeinfo for TSQLRow&#39;<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `ROOT::Math::RootFinder::RootFinder(ROOT::Math::RootFinder::EType)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `int TStreamerInfo::ReadBuffer&lt;char**&gt;(TBuffer&amp;, char** const&amp;, int, int, int, int)&#39;<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::ReadStaticArray(long*)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TKey::Streamer(TBuffer&amp;)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TStreamerInfo::ReadBufferClones(TBuffer&amp;, TClonesArray*, int, int, int)&#39;<br>
/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TMutex::TMutex(bool)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteObject(TObject const*)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteArray(int const*, int)&#39;<br>
/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::BesselK0(double)&#39;<br>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TMessage::Class()&#39;<br>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::StruveH0(double)&#39;<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&amp;view=next&amp;sid=da48524ef4f7180111d474d40b64e1f8" target="_blank">http://root.cern.ch/phpBB2/viewtopic.php?t=7404&amp;view=next&amp;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: &#39;sinogram&#39;<br>
&nbsp;&gt;&gt; Job:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; build a set of 2D sinograms from a PET simulation<br>
&nbsp;&gt;&gt; Is enabled ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Yes<br>
&nbsp;&gt;&gt; Number of crystals per crystal ring: 0<br>
&nbsp;&gt;&gt; Number of crystal rings:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>
&nbsp;&gt;&gt; Number of radial sinogram bins:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>
&nbsp;&gt;&gt; Filled ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; No<br>
&nbsp;&gt;&gt; Attached to system:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; systems/ecat<br>
&nbsp;&gt;&gt; Input data:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; finalCoinc/gate/output/ecat7/enable<br>
***** COMMAND NOT FOUND &lt;/gate/output/ecat7/enable&gt; *****<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&nbsp; 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>