Thanks for the reply. I subscribed to the mailing list.
b)
i looked up any other boost installation with find / -name libboost*
and found only one version.
I did uninstall boost by using rm libboost* in /usr/local/lib
reinstalled with
sudo ./bootstrap.sh --prefix=/usr/local --libdir=/usr/local/lib
&&
sudo ./bjam -j4 variant=release link=shared install
but i still get
g++ -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-
fat-2.6/src/wrapper/wrap_cl.o -L/usr/local/lib -lboost_python -
lboost_thread -o build/lib.macosx-10.3-fat-2.6/pyopencl/_cl.so -Wl -
framework OpenCL -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -
arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk
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
Thanks for the help
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.
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 ?
my specs are :
gcc version 4.2.1 (Apple Inc. build 5646)
boost 1.40 /usr/local/include and /usr/local/lib
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