Hello Marko!<br><br>I recognize your problem, cause I had the same one when I compiled Gate! I dunno if it's the same reason, but here's what I did.<br><br>My path to the ROOT directory where the library files (ex TROOT.h, TTree.h etc) are was not correct in the file "variables.gmk", located in your Gate_v5.0.0_p01 directory. In my case, the ROOT path is "$ROOTSYS/include/root". If you open variables.gmk, and find the line:<br>
<br><span style="color: rgb(51, 51, 255);">CPPFLAGS += -DG4ANALYSIS_USE_ROOT -D_REENTRANT -I$(ROOTSYS)/include</span><br><br>you see that the flag to the root library files is not sufficient (at least in my case), it is <span style="color: rgb(0, 0, 0);">"$(ROOTSYS)/include</span>". I added "/root" like:<br>
<br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">CPPFLAGS += -DG4ANALYSIS_USE_ROOT -D_REENTRANT -I$(ROOTSYS)/include<span style="color: rgb(255, 0, 0);">/root</span></span><br><br>and recompiled without any problems. As I said, maybe your errors are due to another cause than mine was, but have a look and see if this could be it!<br>
Let me know how it works out! Good luck,<br>Ida <br><br><div class="gmail_quote">2009/10/12 Marko T. Oreskovic <span dir="ltr"><<a href="mailto:mtoreskovic@yahoo.com">mtoreskovic@yahoo.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;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
Hi Simon,<br>I have done as you have said and manage to start a compilation process, but with errors.<br>This is now my output from terminal window:<br><br>mtr@mtr-desktop:/usr/share/gate/gate_v5.0.0_p01$ source env_gate.sh<div>
<div></div><div class="h5"><br><br>The current value of G4INSTALL is: /usr/share/geant4/geant4.9.2.p01<br>The current value of G4VERSION is: 9.2<br><br>Launching Geant4 configuration script /usr/share/geant4/geant4.9.2.p01/env.sh<br>
<br>On this machine the G4SYSTEM=Linux-g++<br>On this machine the G4INSTALL=/usr/share/geant4/geant4.9.2.p01<br>On this machine the G4LIB=/usr/share/geant4/geant4.9.2.p01/lib<br>On this machine the G4LEVELGAMMADATA=/usr/share/geant4/geant4.9.2.p01/data/PhotonEvaporation2.0<br>
On this machine the G4RADIOACTIVEDATA=/usr/share/geant4/geant4.9.2.p01/data/RadioactiveDecay3.2<br>On this machine the
G4LEDATA=/usr/share/geant4/geant4.9.2.p01/data/G4EMLOW6.2<br>On this machine the G4NEUTRONHPDATA=/usr/share/geant4/geant4.9.2.p01/data/G4NDL3.13<br>On this machine the G4ABLADATA=/usr/share/geant4/geant4.9.2.p01/data/G4ABLA3.0<br>
On this machine the CLHEP_BASE_DIR=/usr/share/CLHEP<br>On this machine the CLHEP_INCLUDE_DIR=/usr/share/CLHEP/include<br>On this machine the CLHEP_LIB_DIR=/usr/share/CLHEP/lib<br>On this machine the CLHEP_LIB=CLHEP<br>On this machine the G4VIS_BUILD_OPENGLX_DRIVER=1<br>
On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=1<br>On this machine the G4VIS_USE_OPENGLX=1<br>On this machine the G4VIS_USE_RAYTRACERX=1<br>On this machine the XMFLAGS=<br>On this machine the XMLIBS=<br>On this machine the XMFLAGS=<br>
On this machine the XAWFLAGS=<br>On this machine the XAWLIBS=<br>On this machine the G4LIB_BUILD_STATIC=1<br>On this machine the G4LIB_USE_GRANULAR=1<br>On this machine the G4UI_USE_TCSH=1<br><br>Configuring GATE
options<br><br>G4WORKDIR set to .<br>G4TMP set to ./tmp<br>G4BIN set to ./bin<br>Data analysis and output features enabled<br>Ascii data output enabled<br>Transport and generation of optical photons is enabled<br></div>
</div>/lib directory is no /home/mtr/root<br> you should check that ROOT shared libraries are included in LD_LIBRARY_PATH<br>Use of ROOT enabled<div class="im"><br>ROOT real-time plotter disabled<br>LMF data output disabled<br>
ECAT7 data output disabled<br>GATEHOME is set to /usr/share/gate/gate_v5.0.0_p01<br>Checking your path variable...<br> ==> OK: /usr/share/gate/gate_v5.0.0_p01/bin/Linux-g++ is already in your path variable<br>G4VERSION9_2 is set: GATE is compatible with the geant4 version 9.2<br>
<br>Done<br><br></div>mtr@mtr-desktop:/usr/share/gate/gate_v5.0.0_p01$ make<br>Making dependency for file Gate.cc ...<br>In file included from
./source/mandatory_G4_classes/include/GateSteppingAction.hh:34,<br> from Gate.cc:34:<br>./source/output/include/GateTrack.hh:10:19: error: TROOT.h: No such file or directory<br>./source/output/include/GateTrack.hh:11:19: error: TTree.h: No such file or directory<br>
In file included from Gate.cc:53:<br>.<br>.<br>.etc...<br>I'm getting a lot of these TROOT.h, TTree.h errors. Is this a problem with root LD_LIBRARY_PATH ?<br>Here is how I configure my enviormental variables:<br><br>
export ROOTSYS=/home/mtr/root
<br>export PATH=$ROOTSYS/bin:$PATH<br>export LD_LIBRARY_PATH=/home/mtr/root/lib:$LD_LIBRARY_PATH<br><br>ROOT is installed in /home/mtr/root directory, and there is a lib directory in there. <br>This is my LD_LIBRARY_PATH after export:<br>
mtr@mtr-desktop:/usr/share/gate/gate_v5.0.0_p01$ printenv
LD_LIBRARY_PATH<br>/home/mtr/root/lib:/usr/share/CLHEP/lib/:<br><br>regards<br>Marko<br><br><br><br><br><br>--- On <b>Mon, 10/12/09, Simon Stute <i><<a href="mailto:gate.stute@gmail.com" target="_blank">gate.stute@gmail.com</a>></i></b> wrote:<br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Simon Stute <<a href="mailto:gate.stute@gmail.com" target="_blank">gate.stute@gmail.com</a>><br>Subject: Re: [Gate-users] gate5 compilation on Ubuntu problem<br>
To: "Marko T. Oreskovic" <<a href="mailto:mtoreskovic@yahoo.com" target="_blank">mtoreskovic@yahoo.com</a>><br>Cc: <a href="mailto:gate-users@lists.healthgrid.org" target="_blank">gate-users@lists.healthgrid.org</a><br>
Date: Monday, October 12, 2009, 10:49 AM<div><div></div><div class="h5"><br><br><div>Hi,<br><br>When you launch a command as sudo, your personnal environment is not transmitted.<br>So give all rights to blk-desktop in your gate directory, then launch the compilation as 'you' (without sudo), and once the compilation is successful you can give back all rights to root.<br>
<br>Cheers,<br>Simon<br><br><div class="gmail_quote">On Fri, Oct 9, 2009 at 5:54 PM, Marko T. Oreskovic <span dir="ltr"><<a rel="nofollow" href="http://mc/compose?to=mtoreskovic@yahoo.com" target="_blank">mtoreskovic@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
Hi all,<br>I'm new to linux and having problems compiling gate5 on Ubuntu 9.04, here is my listing: <br><br>blk@blk-desktop:/usr/share/gate/gate_v5.0.0_p01$ ls<br>benchmarks env_gate.sh GateMaterials.db Materials.xml README Surfaces.xml<br>
Cluster_Tools examples GNUmakefile noverbose.mac ReleaseNotes.pdf variables.gmk<br>env_gate.csh Gate.cc license prerunGate.mac source<br>blk@blk-desktop:/usr/share/gate/gate_v5.0.0_p01$ source env_gate.sh<br>
<br>The current value of G4INSTALL is: /usr/share/geant4/geant4.9.2.p01<br>The current value of G4VERSION is:
9.2<br><br>Launching Geant4 configuration script /usr/share/geant4/geant4.9.2.p01/env.sh<br><br>On this machine the G4SYSTEM=Linux-g++<br>On this machine the G4INSTALL=/usr/share/geant4/geant4.9.2.p01<br>On this machine the G4LIB=/usr/share/geant4/geant4.9.2.p01/lib<br>
On this machine the G4LEVELGAMMADATA=/usr/share/geant4/geant4.9.2.p01/data/PhotonEvaporation2.0<br>On this machine the G4RADIOACTIVEDATA=/usr/share/geant4/geant4.9.2.p01/data/RadioactiveDecay3.2<br>On this machine the G4LEDATA=/usr/share/geant4/geant4.9.2.p01/data/G4EMLOW6.2<br>
On this machine the G4NEUTRONHPDATA=/usr/share/geant4/geant4.9.2.p01/data/G4NDL3.13<br>On this machine the G4ABLADATA=/usr/share/geant4/geant4.9.2.p01/data/G4ABLA3.0<br>On this machine the CLHEP_BASE_DIR=/usr/share/CLHEP<br>
On this machine the CLHEP_INCLUDE_DIR=/usr/share/CLHEP/include<br>On this machine the CLHEP_LIB_DIR=/usr/share/CLHEP/lib<br>On this machine the CLHEP_LIB=CLHEP<br>On this machine the
G4VIS_BUILD_OPENGLX_DRIVER=1<br>On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=1<br>On this machine the G4VIS_USE_OPENGLX=1<br>On this machine the G4VIS_USE_RAYTRACERX=1<br>On this machine the XMFLAGS=<br>On this machine the XMLIBS=<br>
On this machine the XMFLAGS=<br>On this machine the XAWFLAGS=<br>On this machine the XAWLIBS=<br>On this machine the G4LIB_BUILD_STATIC=1<br>On this machine the G4LIB_USE_GRANULAR=1<br>On this machine the G4UI_USE_TCSH=1<br>
<br>Configuring GATE options<br><br>G4WORKDIR set to .<br>G4TMP set to ./tmp<br>G4BIN set to ./bin<br>Data analysis and output features enabled<br>Ascii data output enabled<br>Transport and generation of optical photons is enabled<br>
Use of ROOT disabled<br>ROOT real-time plotter disabled<br>LMF data output disabled<br>ECAT7 data output disabled<br>GATEHOME is set to /usr/share/gate/gate_v5.0.0_p01<br>Checking your path variable...<br> ==> OK: /usr/share/gate/gate_v5.0.0_p01/bin/Linux-g++ is
already in your path variable<br>G4VERSION9_2 is set: GATE is compatible with the geant4 version 9.2<br><br>Done<br><br>blk@blk-desktop:/usr/share/gate/gate_v5.0.0_p01$ <br>blk@blk-desktop:/usr/share/gate/gate_v5.0.0_p01$ sudo make<br>
GNUmakefile:20: /variables.gmk: No such file or directory<br>GNUmakefile:22: /config/binmake.gmk: No such file or directory<br>make: *** No rule to make target `/config/binmake.gmk'. Stop.<br><br><br><br>I have tried using just make, without sudo, but then I'm getting no permission errors.<br>
I have seen this problem posted before but no answers. Only one answer was about setting a<br>date two years back, but that did not help.<br>Any hints ?</td></tr></tbody></table><br>
<br>_______________________________________________<br>
Gate-users mailing list<br>
<a rel="nofollow" href="http://mc/compose?to=Gate-users@lists.healthgrid.org" target="_blank">Gate-users@lists.healthgrid.org</a><br>
<a rel="nofollow" href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
<br></blockquote></div><br>
</div></div></div></blockquote></td></tr></tbody></table><br>
<br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.healthgrid.org">Gate-users@lists.healthgrid.org</a><br>
<a href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
<br></blockquote></div><br>