/Developer/SDKs/MacOSX10.6.sdk/usr/local/lib is just a symlink link to /usr/local/lib.
won't fix the prob
thanks.

On Sep 15, 2009, at 4:04 PM, James Snyder wrote:


On Sep 15, 2009, at 1:55 PM, Andreas Klöckner wrote:

Hi Jassin,

a) please don't email me directly. Instead, please use the mailing list.

b) It looks like you have a boost version mismatch, i.e. the headers for the boost library which you are using for the compilation don't match the library that gets found at run time. Check for multiple installations of Boost.

I concur, it looks as if you might have a version of boost being found at link time and one being found later when dynamic lookup takes place.

If I had to guess, based on the compiler messages and the later message, you're linking against an install of boost that went into your 10.6 SDK directory (not sure why), and later it is using the one from /usr/local/lib.

You could check if the dynamic lookups work if you include / Developer/SDKs/MacOSX10.6.sdk/usr/local/lib in your DYLD_LIBRARY_PATH. I'm not sure if that's a good idea in the long run though. I might remove the boost libraries & headers from the SDK dir, make sure you have the correct version in /usr/local/lib or wherever you wish to have them installed, and then try rebuilding things.


HTH,
Andreas

On Dienstag 15 September 2009, you wrote:
hi i tried to install opencl under macosx 10.6.1 unfortunnatly when
starting the example i get :

python test_wrapper.py
Traceback (most recent call last):
File "test_wrapper.py", line 205, in <module>
 import pyopencl
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ site-pack ages/pyopencl-0.91-py2.6-macosx-10.3-fat.egg/pyopencl/ __init__.py", line 3,
in <module> import pyopencl._cl as _cl
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/sit e-packages/pyopencl-0.91-py2.6-macosx-10.3-fat.egg/pyopencl/ _cl.so, 2):
Symbol not found:
__ZNK5boost6python7objects21py_function_impl_base9max_arityEv Referenced
from:
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ site-packa ges/pyopencl-0.91-py2.6-macosx-10.3-fat.egg/pyopencl/_cl.so Expected in:
dynamic lookup



during make i get :

ld: warning: in
/Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/ libboost_python.dylib, file
is not of required architecture ld: warning: in
/Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/ libboost_thread.dylib, file
is not of required architecture


what is /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib ?

That architecture complaint may be OK. I think this may just be because boost is built for x86_64 and the other libraries (OpenCL, Python, etc..) are fat binaries with i386 and x86_64. I get the complaint that the libboost_* libraries I'm using aren't of the required architecture.

I'm not sure why they're installed in that location though. My 10.6 SDK doesn't have boost libraries there.


my specs are :

gcc version 4.2.1 (Apple Inc. build 5646)
boost 1.40 /usr/local/include and /usr/local/lib

Looks like you've got a version installed in /Developer/SDKs/ MacOSX10.6.sdk/usr/local/lib as well?

Python 2.6.2
Numpy 1.3.0

did the same way you described under the wiki

python configure.py   --boost-inc-dir=/usr/local/include
--boost-lib-dir=/usr/local/lib --boost-python- libname=boost_python
--boost-thread-libname=boost_thread   --cl-libname=''
--ldflags='-Wl,-framework,OpenCL'   --boost-compiler='gcc42'

echo $DYLD_LIBRARY_PATH  :  /usr/local/lib:/usr/local/cuda/lib

Any idea?


thank you very much in advance. I m very exited about the pyOpencl project


_______________________________________________
PyOpenCL mailing list
[email protected]
http://tiker.net/mailman/listinfo/pyopencl_tiker.net

--
James Snyder
Biomedical Engineering
Northwestern University
[email protected]
http://fanplastic.org/key.txt
ph: 847.448.0386






_______________________________________________
PyOpenCL mailing list
[email protected]
http://tiker.net/mailman/listinfo/pyopencl_tiker.net

Reply via email to