Dear ROOTers,
I have a pile of C++ code that uses ROOT to display running histograms. Works nicely.
I'm using SWIG to provide a Pyton interface for my code, that also works nicely but up to a point.
SWIG creates a C++ wrapper which is used to create a shared library which is linked against the ROOT libraries.
It also create a .py package which I can import and if I don't use ROOT things also work nicely. The moment I use a class which calls on ROOT functions, Python crashes with the following message:
>>> net=Dynamic.D_DynamicNetwork()
>>> net.ConfigureSimulation(par_run)
dlopen error: /usr/not-backed-up/root/lib/root/libASImage.so: undefined symbol: _ZNK7TObject7DoErrorEiPKcS1_Pc
Load Error: Failed to load Dynamic link library /usr/not-backed-up/root/lib/root/libASImage.so
Error in <TGHScrollBar::TGHScrollBar>: arrow_*.xpm not found
Error in <TGVScrollBar::TGVScrollBar>: arrow_*.xpm not found
This symbol is in libCore.so, so I'm curious why the error is generated in libASImage.so. I have checked that I link against libCore.so and anyway the problem occurs at loading time. My LD_LIBRARY_PATH is set correctly (my C++ code wouldn't work if not). Loading the libraries directly in Python reproduces the problem.
Does anyone know what goes on here?
>>> import ctypes
>>> ctypes.cdll.LoadLibrary("libCore.so")
<CDLL 'libCore.so', handle 9be2568 at b7f6508c>
>>> ctypes.cdll.LoadLibrary("libASImage.so")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/ctypes/__init__.py", line 395, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.5/ctypes/__init__.py", line 312, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /usr/not-backed-up/root/lib/root/libASImage.so: undefined symbol: _ZNK7TObject7DoErrorEiPKcS1_Pc
Thanks,
Marc
-
Dr. Marc de Kamps
Biosystems Group
School of Computing
University of Leeds
LS29JT, Leeds, UK
dekamps_at_comp.leeds.ac.uk
http:/www.comp.leeds.ac.uk/dekamps Received on Tue Jul 08 2008 - 19:35:12 CEST
This archive was generated by hypermail 2.2.0 : Tue Jul 08 2008 - 23:50:02 CEST