FW: [Gate-users] Problem linking Gate & Root

Will Ryder wjryder at hotmail.com
Fri Sep 19 15:50:31 CEST 2008


> From: erin at computerhead.com.au> To: wjryder at hotmail.com> Date: Fri, 19 Sep 2008 22:49:45 +1000> Subject: RE: [Gate-users] Problem linking Gate & Root> > Hi Will> > Thanks for the info! That has solved my linking problem. Perhaps you would like to post a brief > note on the gate list, in case others like me strike the same hurdle?> > cheers,> erin> > > > Hi Erin,> > > > This is a linking problem - as you might recognise.> > > > It is fairly simple to solve: If you open the variables.gmk file and change the linking parameters > to:> > > > ifdef G4ANALYSIS_USE_ROOT> > CPPFLAGS += -DG4ANALYSIS_USE_ROOT -D_REENTRANT -I$(ROOTSYS)/include> > ifdef G4ANALYSIS_USE_ROOT_PLOTTER> > CPPFLAGS += -DG4ANALYSIS_USE_ROOT_PLOTTER> > endif> > EXTRALIBS += -L$(ROOTSYS)/lib \> > -lCore -lCint \> > -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad \> > -lTree -lRint -lPostscript \> > -lMatrix -lPhysics -lMathCore \> > -lThread -pthread -lm -ldl -rdynamic> > endif> > # EnfOf : Analysis Variables> > # --------------------------------------------------------------> > > > I hope that helps,> > > > Will> > > From: erin at computerhead.com.au> To: gate-users at lists.healthgrid.org> Date: Fri, 19 Sep > 2008 20:10:04 +1000> Subject: [Gate-users] Problem linking Gate & Root> > Another day, > another problem :-)> > I am trying to build GATE with the output modules for ROOT. I'm working > on a Core 2 duo Mac > running OS X 10.5 (Leopard) and gcc 4.0.1.> > I have tried both ROOT > version 5.18.00 and 5.20.00, built for the i386 architecture. Prior > versions of ROOT don't build > correctly on this system.> > GATE builds correctly if ROOTSYS is not defined. However, if > ROOTSYS is defined, I get the > following message from the linker:> > Linking Gate ...> > Undefined symbols:> "TFile::TFile(char const*, char const*, char const*, int)", referenced from:> > GateHitFileReader::PrepareAcquisition() in libGate.a(GateHitFileReader.o)> > GateToRoot::RecordVoxels(GateVGeometryVoxelStore*) in libGate.a(GateToRoot.o)> > GateToRoot::RecordBeginOfAcquisition() in libGate.a(GateToRoot.o)> > GateToRoot::RecordBeginOfAcquisition() in libGate.a(GateToRoot.o)> ld: symbol(s) not found> > collect2: ld returned 1 exit status> make: *** [bin/Darwin-g++/Gate] Error 1> > Can anyone > suggest how I might get past this?> > cheers,> -- > Erin McKay> Lead Programmer & Tea Boy> > Computerhead> > > > _______________________________________________> Gate-users > mailing list> Gate-users at lists.healthgrid.org> http://lists.healthgrid.org/mailman/listinfo/gate-> users> > > > -- > Erin McKay> Lead Programmer & Tea Boy> Computerhead> > > 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20080919/f923a653/attachment.htm>


More information about the Gate-users mailing list