Hi all!<br>I've successfully installed and run GATE for a week or so now when I decided I probably need the ECAT7 output as well.. (I omitted that the first time I installed GATE). Anyway, I've installed the package according to the guide at "<a href="http://cc.in2p3.fr/docenligne/674/en" target="_blank">http://cc.in2p3.fr/docenligne/674/en</a>". I've thus run <br>
<pre><span style="color: rgb(255, 0, 0);">> cd <...>/gate/ECAT</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">> make -f Makefile.unix</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">> rm *.o</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">> mkdir <...>/gate/gate_v5.0.0/ECAT</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">> mkdir <...>/gate/gate_v5.0.0/ECAT/</span><span style="color: rgb(255, 0, 0);">lib</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">> mkdir <...>/gate/gate_v5.0.0/ECAT/</span><span style="color: rgb(255, 0, 0);">lib/Linux-g++</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">> mkdir <...>/gate/gate_v5.0.0/ECAT/</span><span style="color: rgb(255, 0, 0);">include</span><br>
</pre>After this I copy the files "matrix.h" and "machine_indep.h" into the ECAT/include directory and I copy the file "libecat.a" into ECAT/lib/Linux-g++. <br>
<br>I found on a previous thread that it was best to completely recompile GATE, with make clean and all... so I remove and reinstall GATE (note that I have NOT set the ECAT7_HOME variable yet!): <br><pre><span style="color: rgb(255, 0, 0);">> cd <...>/gate/gate_v_5.0.0</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">> make clean (I also remove the tmp directory)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">> make</span><br><br><font style="font-family: arial,helvetica,sans-serif;" size="2">After successful GATE compilation I set <br>
</font><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">> export ECAT7_HOME=<...>/gate/ECAT</span><br><font style="font-family: arial,helvetica,sans-serif;" size="2"><br>I try and run the ex</font><font style="font-family: arial,helvetica,sans-serif;" size="2">ample PET_Ecat_System.mac in GATE, with default sinogram and ecat7 output, but it seems the ECAT7 library isn't found or something:<br>
<span style="color: rgb(255, 0, 0); font-family: times new roman,serif;">....</span><br style="color: rgb(255, 0, 0); font-family: times new roman,serif;"><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">GATE object: 'digitizer/finalCoinc'<br>
Is enabled? Yes<br>Nb of elements: 0<br>Attached to: 'digitizer'<br>Output: 'finalCoinc'<br>***** COMMAND NOT FOUND </gate/output/sinogram/StoreDelayed> *****<br><br>***** Batch is interupted!! *****<br>
Graphics systems deleted.<br>Visualization Manager deleting...<br>GateRTPhantomMgr deleting...<br>[ida@localhost example_PET_Scanner]$ </font><br><span style="color: rgb(255, 0, 0);">....</span><br><br style="font-family: arial,helvetica,sans-serif;">
</font><font style="font-family: arial,helvetica,sans-serif;" size="2">If I remove the sinogram output and only use ecat7 output I instead get</font><br><br><font style="font-family: times new roman,serif;" size="2"><font><font style="font-family: arial,helvetica,sans-serif;"><font style="color: rgb(255, 0, 0);">...<br>
</font><font style="font-family: times new roman,serif; color: rgb(255, 0, 0);">***** COMMAND NOT FOUND </gate/output/ecat7/enable> *****</font><font style="color: rgb(255, 0, 0);"><br></font></font></font></font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">...</font><font style="font-family: times new roman,serif;" size="2"><span style="color: rgb(255, 0, 0);">.</span></font><br>
</pre>When I try to compile GATE with the ECAT7_HOME variable set BEFORE compilation I don't get a successful linking:<br>.<font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">...<br>Creating shared library tmp/Linux-g++/Gate/libGate.so ...<br>
Creating/replacing object files in ./tmp/Linux-g++/Gate/libGate.a ...<br>
ar: creating ./tmp/Linux-g++/Gate/libGate.a<br>Compiling Gate.cc ...<br>Using global libraries ...<br>Linking Gate ...<br>./tmp/Linux-g++/Gate/libGate.</font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">so: undefined reference to `GateVObjectMove::</font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">PushMyPlacements(CLHEP::</font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">HepRotation const&, CLHEP::Hep3Vector const&, double)'<br>
./tmp/Linux-g++/Gate/libGate.</font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">so: undefined reference to `GateVolumeID::</font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">MoveToBottomVolumeFrame(CLHEP:</font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">:Hep3Vector, int) const'<br>
./tmp/Linux-g++/Gate/libGate.</font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">so: undefined reference to `GateToASCII::GateToASCII(</font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">G4String const&, GateOutputMgr*, DigiMode)'<br>
... <br>./tmp/Linux-g++/Gate/libGate.</font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">so: undefined reference to `GateToRoot::GetPHData(</font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">ComptonRayleighData&)'<br>
./tmp/Linux-g++/Gate/libGate.</font><font style="color: rgb(255, 0, 0); font-family: times new roman,serif;" size="2">so: undefined reference to `GateTrack::GetTrackID()'<br>collect2: ld returned 1 exit status<br>
make: *** [bin/Linux-g++/Gate] Error 1<br>....</font><br><br>My question is do you set the ECAT7_HOME variable before or after GATE compilation, and how do you get GATE to enable to ECAT7 output?<br>Thanks in advance!<br>
/Ida<br>