[Gate-users] Re: Gate compile error

Simon Stute gate.stute at gmail.com
Thu May 24 14:22:10 CEST 2007


Hi Roger,

Now the problem is a bit strange ... When compiling gate, some undefined
references appear in geant4, but not in relation with Gate ...
Your different versions are totally compatible. I think that some includes
are missing but I can't tell you more. I see that you chose to use the
RayTracerX and OpenGLXM, perhaps your problem come from this ? I don't know
if your choice is specific but if you just want to have a standard
visualization, you just need OpenGLX, the others allow you to have very
specific visualization (and I don't know more about). So if you don't need
its, try do disable its and recompile geant4, because many of the error
messages are about that.

And then, I suggest you to use Gate3.1.1.

Cheers
Simon

2007/5/24, Simon Stute <gate.stute at gmail.com>:
>
>
>
> ---------- Forwarded message ----------
> From: Roger Murray Bourne <rbourne at med.usyd.edu.au>
> Date: 24 mai 2007 03:37
> Subject: Re: [Gate-users] Re: Gate compile error
> To: Simon Stute <gate.stute at gmail.com>
>
> Hi Simon
>
> Even after deletion of gate/tmp I get errors that suggest to me that
> the geant version is not compatible.
>
> My current versions are
> clhep202a geant481p02 root51200 gate300
>
> gate make (after correct sourcing and setenv) gives
>
>
> /usr/src/geant4.8.1.p02/lib/Linux-g++/libG4OpenGL.a(
> G4OpenGLXmMainMenubarCallbacks.o)(.text+0x739): In function
> `G4OpenGLXmViewer::misc_callback(_WidgetRec*, void*,
> void*)':
> : undefined reference to `G4Xt::getInstance()'
> /usr/src/geant4.8.1.p02/lib/Linux-g++/libG4OpenGL.a(
> G4OpenGLXmMainMenubarCallbacks.o)(.text+0x744): In function
> `G4OpenGLXmViewer::misc_callback(_WidgetRec*, void*,
> void*)':
> : undefined reference to
> `G4VInteractorManager::RequireExitSecondaryLoop(int)'
> /usr/src/geant4.8.1.p02/lib/Linux-g++/libG4RayTracer.a( G4TheRayTracer.o)(.text+0xef):
> In function `G4TheRayTracer::G4TheRayTracer(G4VFigureFileMaker*,
> G4VRTScanner*)':
> : undefined reference to `G4RayShooter::G4RayShooter()'
> /usr/src/geant4.8.1.p02/lib/Linux-g++/libG4RayTracer.a( G4TheRayTracer.o)(.text+0x3a7):
> In function `G4TheRayTracer::G4TheRayTracer(G4VFigureFileMaker*,
> G4VRTScanner*)':
> : undefined reference to `G4RayShooter::G4RayShooter()'
> /usr/src/geant4.8.1.p02/lib/Linux-g++/libG4RayTracer.a( G4TheRayTracer.o)(.text+0x15fa):
> In function
> `G4TheRayTracer::CreateBitMap()':
> : undefined reference to `G4RayShooter::Shoot(G4Event*,
> CLHEP::Hep3Vector, CLHEP::Hep3Vector)'
> /usr/src/geant4.8.1.p02/lib/Linux-g++/libG4Tree.a(
> G4ASCIITreeSceneHandler.o)(.text+0x924): In function
> `G4ASCIITreeSceneHandler::EndModeling()':
> : undefined reference to
>
> `G4PhysicalVolumeMassScene::G4PhysicalVolumeMassScene(G4PhysicalVolumeModel*)'
> /usr/src/geant4.8.1.p02/lib/Linux-g++/libG4Tree.a(
> G4ASCIITreeSceneHandler.o)(.text+0xb8c): In function
> `G4ASCIITreeSceneHandler::EndModeling()':
> : undefined reference to
> `G4PhysicalVolumeMassScene::~G4PhysicalVolumeMassScene()'
> /usr/src/geant4.8.1.p02/lib/Linux-g++/libG4Tree.a(
> G4ASCIITreeSceneHandler.o)(.text+0xbcc): In function
> `G4ASCIITreeSceneHandler::EndModeling()':
> : undefined reference to
> `G4PhysicalVolumeMassScene::~G4PhysicalVolumeMassScene()'
> collect2: ld returned 1 exit status
> make: *** [bin/Linux-g++/Gate] Error 1
> [rbourne at localhost gate_v3.0.0]$
>
> Quoting Simon Stute <gate.stute at gmail.com>:
>
> > Hi,
> >
> > There is no problem with the use of root 5.14 which is supported by Gate
> > 3.0.0, 3.1.0 and 3.1.1. I personally always use this version which works
> > fine. The problem is not due to the chosen version of Gate too (3.0.0),
> even
> > if as Daniel suggested, the use of Gate3.1.1 is recommended with the
> > Geant4.8.1.p02. The problem comes from the last installation of
> > Geant4.8.2.p01 you did before installing the Geant4.8.1.p02. The Gate
> > makefile search
> `/usr/src/geant4.8.2.p01/source/run/include/G4RunManager.hh'
> > that you have probably removed. Be sure that your G4INSTALL is pointing
> to
> > the good path of the Geant4.8.1.p02 and not of Geant4.8.2.p01, and then
> you
> > may have a look at the env.csh (of Geant4.8.1.p02 ) to see if all the
> path
> > are correct.
> >
> >
>
> Thanks for your help
> Roger
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20070524/67f0fd53/attachment.htm>


More information about the Gate-users mailing list