[Pymat-users] Linking not working after compilation
Brought to you by:
ajssf
From: Stephan R. <ste...@tu...> - 2005-09-12 17:46:32
|
Hi everyone, I just tried to compile pymat and I ran into some troubles. The first thing I had to do was to change setup.py and comment out the following lines like this: if sys.platform[:6] == 'linux2': matlab_dir ='/opt/matlab' matlab_plat = 'glnx86' libraries = [ #'eng', #'mat', #'mx', #'ut', 'stdc++' ] After that the lib compiled and installed just fine. However, then the following fails: $ python -c "import pymat" Traceback (most recent call last): File "<string>", line 1, in ? File "/usr/lib/python2.4/site-packages/pymat/__init__.py", line 9, in ? from pymat import * ImportError: /usr/lib/python2.4/site-packages/pymat/pymat.so: undefined symbol: mxCalloc So it can clearly not find the mx.so library, right? Then I tried: $ export LD_LIBRARY_PATH=/opt/matlab/extern/lib/glnx86/ $ python -c "import pymat" with the same result as above. I am using: Python 2.4 GCC 3.4.3 Matlab (the latest) Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training |