<div dir="ltr"><div><div>Hey,<br>On compiling with ROOT support ON. IT shows following error:<br><br>~/Downloads/gate.7.0-build$ make -j4<br>Scanning dependencies of target itkzlib<br>Scanning dependencies of target ITKMetaIO<br>
[ 0%] [ 0%] [ 0%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/crc32.o<br>Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/compress.o<br>Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/adler32.o<br>
[ 0%] [ 0%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaUtils.o<br>Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaArrow.o<br>[ 0%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/deflate.o<br>
[ 1%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/gzio.o<br>[ 1%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaBlob.o<br>[ 1%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/inffast.o<br>
[ 1%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/inflate.o<br>[ 1%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/inftrees.o<br>[ 1%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/trees.o<br>
[ 1%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/uncompr.o<br>[ 2%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaCommand.o<br>[ 3%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/zutil.o<br>
[ 3%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaContour.o<br>[ 3%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaDTITube.o<br>Linking C static library libitkzlib.a<br>[ 3%] Built target itkzlib<br>
[ 3%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaEllipse.o<br>[ 3%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaGroup.o<br>[ 3%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaGaussian.o<br>
[ 4%] [ 4%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaImage.o<br>Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaImageUtils.o<br>[ 4%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaLandmark.o<br>
[ 4%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaLine.o<br>[ 4%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaMesh.o<br>[ 4%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaObject.o<br>
[ 4%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaOutput.o<br>[ 5%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaScene.o<br>[ 5%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaSurface.o<br>
[ 5%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaTube.o<br>[ 5%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaVesselTube.o<br>[ 5%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaTransform.o<br>
[ 5%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaTubeGraph.o<br>[ 6%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaForm.o<br>[ 6%] Building CXX object itk-mhd/MetaIO/CMakeFiles/ITKMetaIO.dir/metaArray.o<br>
Linking CXX static library libITKMetaIO.a<br>[ 6%] Built target ITKMetaIO<br>Scanning dependencies of target Gate<br>[ 6%] [ 6%] [ 6%] [ 6%] Building CXX object CMakeFiles/Gate.dir/source/arf/src/GateARFTable.cc.o<br>
Building CXX object CMakeFiles/Gate.dir/Gate.cc.o<br>Building CXX object CMakeFiles/Gate.dir/source/arf/src/GateARFTableMgrMessenger.cc.o<br>Building CXX object CMakeFiles/Gate.dir/source/arf/src/GateARFDataToRootMessenger.cc.o<br>
[ 6%] Building CXX object CMakeFiles/Gate.dir/source/arf/src/GateARFDataToRoot.cc.o<br>[ 6%] Building CXX object CMakeFiles/Gate.dir/source/arf/src/GateARFSDMessenger.cc.o<br>In file included from /home/ayush/Downloads/geant4-install/include/Geant4/G4TrajectoryContainer.hh:46:0,<br>
from /home/ayush/Downloads/geant4-install/include/Geant4/G4EventManager.hh:37,<br> from /home/ayush/Downloads/geant4-install/include/Geant4/G4RunManagerKernel.hh:66,<br> from /home/ayush/Downloads/geant4-install/include/Geant4/G4RunManager.hh:131,<br>
from /home/ayush/Downloads/gate_v7.0/source/general/include/GateRunManager.hh:30,<br> from /home/ayush/Downloads/gate_v7.0/Gate.cc:25:<br>/home/ayush/Downloads/geant4-install/include/Geant4/G4VTrajectory.hh:91:17: warning: ‘virtual void G4VTrajectory::DrawTrajectory() const’ was hidden [-Woverloaded-virtual]<br>
virtual void DrawTrajectory() const;<br> ^<br>In file included from /home/ayush/Downloads/gate_v7.0/source/digits_hits/include/GateUserActions.hh:38:0,<br> from /home/ayush/Downloads/gate_v7.0/source/physics/include/GateSourcePhaseSpace.hh:39,<br>
from /home/ayush/Downloads/gate_v7.0/source/physics/include/GateSourceMgr.hh:18,<br> from /home/ayush/Downloads/gate_v7.0/Gate.cc:30:<br>/home/ayush/Downloads/gate_v7.0/source/digits_hits/include/GateTrajectory.hh:74:17: warning: by ‘virtual void GateTrajectory::DrawTrajectory(G4int) const’ [-Woverloaded-virtual]<br>
virtual void DrawTrajectory(G4int i_mode=0) const;<br> ^<br>[ 7%] Building CXX object CMakeFiles/Gate.dir/source/arf/src/GateARFSD.cc.o<br>[ 7%] Building CXX object CMakeFiles/Gate.dir/source/arf/src/GateARFTableMgr.cc.o<br>
[ 7%] Building CXX object CMakeFiles/Gate.dir/source/geometry/src/GateVolumePlacement.cc.o<br>[ 7%] Building CXX object CMakeFiles/Gate.dir/source/geometry/src/GateVVolume.cc.o<br>/home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc: In member function ‘void GateARFTableMgr::SaveARFToBinaryFile()’:<br>
/home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:225:1: error: ‘ofstream’ was not declared in this scope<br> ofstream dest;<br> ^<br>/home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:225:1: note: suggested alternative:<br>
In file included from /usr/include/c++/4.8/ios:38:0,<br> from /usr/include/c++/4.8/istream:38,<br> from /usr/include/c++/4.8/sstream:38,<br> from /usr/include/c++/4.8/complex:45,<br>
from /home/ayush/Downloads/geant4-install/include/Geant4/G4Types.hh:67,<br> from /home/ayush/Downloads/geant4-install/include/Geant4/G4ios.hh:39,<br> from /home/ayush/Downloads/geant4-install/include/Geant4/globals.hh:49,<br>
from /home/ayush/Downloads/gate_v7.0/source/arf/include/GateARFTableMgr.hh:12,<br> from /home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:13:<br>/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’<br>
typedef basic_ofstream<char> ofstream;<br> ^<br>/home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:225:10: error: expected ‘;’ before ‘dest’<br> ofstream dest;<br>
^<br>/home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:226:1: error: ‘dest’ was not declared in this scope<br> dest.open ( theFN.c_str() );<br> ^<br>/home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc: In member function ‘void GateARFTableMgr::LoadARFFromBinaryFile(G4String)’:<br>
/home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:301:3: error: ‘ifstream’ was not declared in this scope<br> ifstream dest;<br> ^<br>/home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:301:3: note: suggested alternative:<br>
In file included from /usr/include/c++/4.8/ios:38:0,<br> from /usr/include/c++/4.8/istream:38,<br> from /usr/include/c++/4.8/sstream:38,<br> from /usr/include/c++/4.8/complex:45,<br>
from /home/ayush/Downloads/geant4-install/include/Geant4/G4Types.hh:67,<br> from /home/ayush/Downloads/geant4-install/include/Geant4/G4ios.hh:39,<br> from /home/ayush/Downloads/geant4-install/include/Geant4/globals.hh:49,<br>
from /home/ayush/Downloads/gate_v7.0/source/arf/include/GateARFTableMgr.hh:12,<br> from /home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:13:<br>/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’<br>
typedef basic_ifstream<char> ifstream;<br> ^<br>/home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:301:12: error: expected ‘;’ before ‘dest’<br> ifstream dest;<br>
^<br>/home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:302:3: error: ‘dest’ was not declared in this scope<br> dest.open ( theFileName.c_str(),std::ios::binary );<br> ^<br>[ 7%] Building CXX object CMakeFiles/Gate.dir/source/geometry/src/GateCPETSystem.cc.o<br>
In file included from /home/ayush/Downloads/2.1.3.1-install/include/CLHEP/Vector/RotationX.icc:11:0,<br> from /home/ayush/Downloads/2.1.3.1-install/include/CLHEP/Vector/RotationX.h:283,<br> from /home/ayush/Downloads/2.1.3.1-install/include/CLHEP/Vector/Rotation.h:30,<br>
from /home/ayush/Downloads/geant4-install/include/Geant4/G4RotationMatrix.hh:41,<br> from /home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:26:<br>/home/ayush/Downloads/2.1.3.1-install/include/CLHEP/Units/PhysicalConstants.h: At global scope:<br>
/home/ayush/Downloads/2.1.3.1-install/include/CLHEP/Units/PhysicalConstants.h:80:21: warning: ‘CLHEP::electron_charge’ defined but not used [-Wunused-variable]<br> static const double electron_charge = - eplus; // see SystemOfUnits.h<br>
^<br>In file included from /home/ayush/Downloads/geant4-install/include/Geant4/Randomize.hh:32:0,<br> from /home/ayush/Downloads/geant4-install/include/Geant4/G4VProcess.hh:405,<br> from /home/ayush/Downloads/geant4-install/include/Geant4/G4StepLimiter.hh:43,<br>
from /home/ayush/Downloads/gate_v7.0/source/physics/include/GatePhysicsList.hh:17,<br> from /home/ayush/Downloads/gate_v7.0/source/geometry/include/GateDetectorConstruction.hh:20,<br> from /home/ayush/Downloads/gate_v7.0/source/digits_hits/include/GateProjectionSet.hh:14,<br>
from /home/ayush/Downloads/gate_v7.0/source/arf/include/GateARFSD.hh:24,<br> from /home/ayush/Downloads/gate_v7.0/source/arf/src/GateARFTableMgr.cc:27:<br>/home/ayush/Downloads/2.1.3.1-install/include/CLHEP/Random/Randomize.h:68:12: warning: ‘CLHEP::HepRandomGenActive’ defined but not used [-Wunused-variable]<br>
static int HepRandomGenActive = HepRandom::createInstance();<br> ^<br>make[2]: *** [CMakeFiles/Gate.dir/source/arf/src/GateARFTableMgr.cc.o] Error 1<br>make[2]: *** Waiting for unfinished jobs....<br>make[1]: *** [CMakeFiles/Gate.dir/all] Error 2<br>
make: *** [all] Error 2<br><br><br></div>Following options are "ON" :<br>GATE_ANALYSIS_USE_FILE = ON<br>GATE_ANALYSIS_USE_GENERAL = ON<br>GATE_USE_GEANT4_UIVIS = ON<br>GATE_USE_ROOT = ON<br>GATE_USE_SYSTEM_CLHEP = ON<br>
GATE_USE_SYSTEM_CLHEP = ON<br><br></div>Thanks<br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Ayush Maheshwari<div>5th year B.Tech - M.Tech</div><div>Dept. of Engg. Design</div><div>IIT Madras</div>
<div>Contact: +91-8124320800; +91-9008342006</div></div></div>
<br><br><div class="gmail_quote">On 14 July 2014 13:40, Patay Gergely <span dir="ltr"><<a href="mailto:patay.gergely@mediso.hu" target="_blank">patay.gergely@mediso.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I guess you tried to compile without ROOT support (GATE_USE_ROOT=OFF).<br>
Well, it just won't work, because the ARF (and a few other) source code will still hold some dependencies on ROOT in the source code.<br>
<br>
* The simple way is to build with ROOT (GATE_USE_ROOT=ON).<br>
<br>
* The other way is to fix the missing #ifdef G4ANALYSIS_USE_ROOT guarding lines in the source.<br>
<a href="https://dl.dropboxusercontent.com/u/43097994/gate7/root.patch.gz" target="_blank">https://dl.dropboxusercontent.<u></u>com/u/43097994/gate7/root.<u></u>patch.gz</a><br>
With this patch applied, the code can be compiled with or without ROOT.<br>
<br>
Please note that if you choose to build Gate without ROOT, you will not be able to use a couple of its features (ARF, TriCoinc, DigiRoot, LinacBeam, various Actors, just to name a few).<br>
<br>
Gergely<br>
<br>
---<br>
Gergely Patay<br>
physicist<br>
Mediso Medical Imaging Systems Ltd.<br>
Hungary<br>
<br>
On 2014-07-13 05:50, Ayush Maheshwari wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I've successfully compiled CLHEP, Geant4, but I'm getting the<br>
following error when I try to 'make' GATE:<br>
<br>
gate.7.0-build$ make -j4<br>
[ 2%] Built target itkzlib<br>
[ 6%] Built target ITKMetaIO<br>
[ 6%] [ 6%] [ 6%] [ 7%] Building CXX object<br>
CMakeFiles/Gate.dir/source/<u></u>geometry/src/GateVVolume.cc.o<br>
Building CXX object CMakeFiles/Gate.dir/source/<u></u>geometry/src/GateTrap.cc.o<br>
Building CXX object<br>
CMakeFiles/Gate.dir/source/<u></u>geometry/src/<u></u>GateMDBFieldDecoder.cc.o<br>
Building CXX object<br>
CMakeFiles/Gate.dir/source/<u></u>geometry/src/<u></u>GateSystemListManager.cc.o<br>
[ 7%] Building CXX object<br>
CMakeFiles/Gate.dir/source/<u></u>geometry/src/GateWedge.cc.o<br>
[ 7%] Building CXX object<br>
CMakeFiles/Gate.dir/source/<u></u>geometry/src/<u></u>GateMDBFieldReader.cc.o<br>
/home/ayush/Downloads/gate_v7.<u></u>0/source/geometry/src/<u></u>GateVVolume.cc: In<br>
member function ‘void GateVVolume::AttachARFSD()’:<br>
/home/ayush/Downloads/gate_v7.<u></u>0/source/geometry/src/<u></u>GateVVolume.cc:630:12:<br>
error: invalid use of incomplete type ‘class GateARFSD’<br>
if (arfSD-><u></u>PrepareCreatorAttachment(this)<u></u>) {<br>
^<br>
In file included from<br>
/home/ayush/Downloads/gate_v7.<u></u>0/source/geometry/src/<u></u>GateVVolume.cc:29:0:<br>
/home/ayush/Downloads/gate_v7.<u></u>0/source/geometry/include/<u></u>GateDetectorConstruction.hh:<u></u>33:7:<br>
error: forward declaration of ‘class GateARFSD’<br>
class GateARFSD;<br>
^<br>
/home/ayush/Downloads/gate_v7.<u></u>0/source/geometry/src/<u></u>GateVVolume.cc:639:23:<br>
error: cannot convert ‘GateARFSD*’ to ‘G4VSensitiveDetector*’ in<br>
assignment<br>
m_sensitiveDetector = arfSD;<br>
^<br>
[ 7%] Building CXX object<br>
CMakeFiles/Gate.dir/source/<u></u>geometry/src/<u></u>GateGeometryVoxelInterfileRead<u></u>er.cc.o<br>
In file included from<br>
/home/ayush/Downloads/2.1.3.1-<u></u>install/include/CLHEP/Vector/<u></u>RotationX.icc:11:0,<br>
from<br>
/home/ayush/Downloads/2.1.3.1-<u></u>install/include/CLHEP/Vector/<u></u>RotationX.h:283,<br>
from<br>
/home/ayush/Downloads/2.1.3.1-<u></u>install/include/CLHEP/Vector/<u></u>Rotation.h:30,<br>
from<br>
/home/ayush/Downloads/geant-<u></u>install/include/Geant4/<u></u>G4RotationMatrix.hh:41,<br>
from<br>
/home/ayush/Downloads/gate_v7.<u></u>0/source/geometry/include/<u></u>GateVolumePlacement.hh:17,<br>
from<br>
/home/ayush/Downloads/gate_v7.<u></u>0/source/geometry/include/<u></u>GateVVolume.hh:16,<br>
from<br>
/home/ayush/Downloads/gate_v7.<u></u>0/source/geometry/src/<u></u>GateVVolume.cc:10:<br>
/home/ayush/Downloads/2.1.3.1-<u></u>install/include/CLHEP/Units/<u></u>PhysicalConstants.h:<br>
At global scope:<br>
/home/ayush/Downloads/2.1.3.1-<u></u>install/include/CLHEP/Units/<u></u>PhysicalConstants.h:80:21:<br>
warning: ‘CLHEP::electron_charge’ defined but not used<br>
[-Wunused-variable]<br>
static const double electron_charge = - eplus; // see SystemOfUnits.h<br>
^<br>
In file included from<br>
/home/ayush/Downloads/geant-<u></u>install/include/Geant4/<u></u>Randomize.hh:32:0,<br>
from<br>
/home/ayush/Downloads/geant-<u></u>install/include/Geant4/<u></u>G4VProcess.hh:405,<br>
from<br>
/home/ayush/Downloads/geant-<u></u>install/include/Geant4/<u></u>G4StepLimiter.hh:43,<br>
from<br>
/home/ayush/Downloads/gate_v7.<u></u>0/source/physics/include/<u></u>GatePhysicsList.hh:17,<br>
from<br>
/home/ayush/Downloads/gate_v7.<u></u>0/source/geometry/include/<u></u>GateDetectorConstruction.hh:<u></u>20,<br>
from<br>
/home/ayush/Downloads/gate_v7.<u></u>0/source/geometry/src/<u></u>GateVVolume.cc:29:<br>
/home/ayush/Downloads/2.1.3.1-<u></u>install/include/CLHEP/Random/<u></u>Randomize.h:68:12:<br>
warning: ‘CLHEP::HepRandomGenActive’ defined but not used<br>
[-Wunused-variable]<br>
static int HepRandomGenActive = HepRandom::createInstance();<br>
^<br>
make[2]: *** [CMakeFiles/Gate.dir/source/<u></u>geometry/src/GateVVolume.cc.o] Error 1<br>
make[2]: *** Waiting for unfinished jobs....<br>
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
<br>
Could anyone help me in figuring out the error ? Looks like a bug in<br>
the source code itself.<br>
<br>
My system is Ubuntu 12.04, 64-bit.<br>
<br>
- Ayush Maheshwari<br>
______________________________<u></u>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.<u></u>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.<u></u>opengatecollaboration.org/<u></u>mailman/listinfo/gate-users</a><br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.<u></u>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.<u></u>opengatecollaboration.org/<u></u>mailman/listinfo/gate-users</a></blockquote></div><br></div>