[Gate-users] Unable to run Gate 6.1 on Mac OS X (dyld: Symbol not found)

Mojca Miklavec mojca.miklavec.lists at gmail.com
Wed Mar 30 12:26:29 CEST 2011


Hello,

I'm using 64-bit Mac OS X 10.6.7. I have just installed a new version
of Qt (4.7.2), CLHEP and Geant4 (9.4.p01) and have an older version of
Root (5.26; I can upgrade, but I didn't think it had any influence on
GATE). I have installed both CLHEP and Geant4 as static only due to
some problems I had in past (I could probably try to install with
dynamic linking now, but now that I finally got Geant4 working after
constant crashing, I would like ta keep the existing state if
possible).

I didn't install lmf 3.0 yet (it would be great if somebody would
update the wiki page
http://wiki.opengatecollaboration.org/index.php/InstallationGuide and
also include TOC on top of installation page). I can try do that, but
it was not mentioned to be required. On the contrary, some messages
that I found in archive of this mailing list suggested that lmf is the
showstopper or Mac OS X.

GATE compiled without a problem. On top of env_gate.sh I do:
- call initialization of root
- call initialization of geant4
- export G4VERSION=9.4
  export G4WORKDIR=...
  export GATEHOME=/path/to/gate/gate_v6.1

The rest of script is left intact.

The script ends with:

...
G4WORKDIR set to .
G4TMP set to ./tmp
G4BIN set to ./bin
Data analysis and output features enabled
Ascii data output enabled
Transport and generation of optical photons is disabled
Checking your LD_LIBRARY_PATH variable...
 ==> OK: /path/to/root/root/lib is already in your LD_LIBRARY_PATH
Use of ROOT enabled
ROOT real-time plotter disabled
LMF data output disabled
ECAT7 data output disabled
GATEHOME is set to /path/to/gate/gate_v6.1
Checking your path variable...
 ==> OK: /path/to/gate/gate_v6.1/bin/Darwin-g++ added to your path variable
Checking your LD_LIBRARY_PATH variable...
 ==> OK: /path/to/gate/gate_v6.1/tmp/Darwin-g++/Gate added to your path variable
G4VERSION9_3 is set: GATE is compatible with the GEANT4 version 9.3 and 9.4

Done



However it then "crashes" when I try to run Gate:

bash> Gate
dyld: Symbol not found: __ZN15G4UserRunAction11GenerateRunEv
  Referenced from: /path/to/gate/gate_v6.1/tmp/Darwin-g++/Gate/libGate.dylib
  Expected in: flat namespace
 in /path/to/gate/gate_v6.1/tmp/Darwin-g++/Gate/libGate.dylib

^C^CTrace/BPT trap

Here is the list of library dependencies of Gate binary:

bash> otool -L bin/Darwin-g++/Gate
bin/Darwin-g++/Gate:
	/usr/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/path/to/gate/gate_v6.1/tmp/Darwin-g++/Gate/libGate.dylib
(compatibility version 0.0.0, current version 0.0.0)
	@rpath/libCore.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libCint.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libRIO.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libNet.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libHist.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libGraf.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libGraf3d.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libGpad.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libTree.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libRint.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libPostscript.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libMatrix.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libPhysics.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libMathCore.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libThread.so (compatibility version 0.0.0, current version 0.0.0)
	/usr/X11/lib/libfreetype.6.dylib (compatibility version 13.0.0,
current version 13.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.2.10)
	QtCore.framework/Versions/4/QtCore (compatibility version 4.7.0,
current version 4.7.2)
	QtGui.framework/Versions/4/QtGui (compatibility version 4.7.0,
current version 4.7.2)
	QtOpenGL.framework/Versions/4/QtOpenGL (compatibility version 4.7.0,
current version 4.7.2)
	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
(compatibility version 1.0.0, current version 1.0.0)
	/System/Library/Frameworks/AGL.framework/Versions/A/AGL
(compatibility version 1.0.0, current version 1.0.0)
	/usr/X11/lib/libGLU.1.dylib (compatibility version 1.3.0, current
version 1.3.0)
	/usr/X11/lib/libGL.1.dylib (compatibility version 1.2.0, current version 1.2.0)
	/usr/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current
version 9.0.0)
	/usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current
version 11.0.0)
	/usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current
version 9.0.0)
	/usr/X11/lib/libXi.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current
version 10.0.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)

and:

bash> otool -L  tmp/Darwin-g++/Gate/libGate.dylib
tmp/Darwin-g++/Gate/libGate.dylib:
	/path/to/gate/gate_v6.1/tmp/Darwin-g++/Gate/libGate.dylib
(compatibility version 0.0.0, current version 0.0.0)
	QtCore.framework/Versions/4/QtCore (compatibility version 4.7.0,
current version 4.7.2)
	QtGui.framework/Versions/4/QtGui (compatibility version 4.7.0,
current version 4.7.2)
	QtOpenGL.framework/Versions/4/QtOpenGL (compatibility version 4.7.0,
current version 4.7.2)
	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
(compatibility version 1.0.0, current version 1.0.0)
	/System/Library/Frameworks/AGL.framework/Versions/A/AGL
(compatibility version 1.0.0, current version 1.0.0)
	/usr/X11/lib/libGLU.1.dylib (compatibility version 1.3.0, current
version 1.3.0)
	/usr/X11/lib/libGL.1.dylib (compatibility version 1.2.0, current version 1.2.0)
	/usr/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current
version 9.0.0)
	/usr/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current
version 11.0.0)
	/usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current
version 9.0.0)
	/usr/X11/lib/libXi.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current
version 10.0.0)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.2.10)

Can somebody please help me figure out what the problem could be?

Thank you very much,
   Mojca


More information about the Gate-users mailing list