At least on Linux, -l implies the "lib"--try not mentioning that explicitly.

Andreas

On Dienstag 19 Mai 2009, Thomas Robitaille wrote:
> Hello,
>
> Apologies if this has been asked before, but I am trying to install
> pycuda on a mac with MacOS 10.5.7. I have installed CUDA using the pkg
> installer, and have installed boost with python26 support in macports.
> I configure the pycuda install with
>
> python configure.py --boost-inc-dir=/opt/local/include \
>                      --boost-lib-dir=/opt/local/lib \
>                      --boost-python-libname=libboost_python-mt \
>                      --cuda-root=/usr/local/cuda
>
> and then run sudo make, which fails here:
>
> g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined
> dynamic_lookup build/temp.macosx-10.3-i386-2.6/src/cpp/cuda.o build/
> temp.macosx-10.3-i386-2.6/src/cpp/bitlog.o build/temp.macosx-10.3-
> i386-2.6/src/wrapper/wrap_cudadrv.o build/temp.macosx-10.3-i386-2.6/
> src/wrapper/mempool.o -L/opt/local/lib -L/usr/local/cuda/lib -
> llibboost_python-mt -lcuda -o build/lib.macosx-10.3-i386-2.6/pycuda/
> _driver.so -arch i386
> ld: library not found for -llibboost_python-mt
>
> However, if I look for libboos_python-mt, it is indeed there:
>
> $ ls /opt/local/lib/libboost_python-mt*
> /opt/local/lib/libboost_python-mt-s.a
> /opt/local/lib/libboost_python-mt.a
> /opt/local/lib/libboost_python-mt.dylib
>
> I tried running
>
> export DYLD_LIBRARY_PATH=/opt/local/lib
> export LD_LIBRARY_PATH=/opt/local/lib
>
> before 'sudo make', and it doesn't change anything
>
> Does anyone have any idea as to what might be causing this problem?
>
> Thanks!
>
> Thomas
>
> _______________________________________________
> PyCuda mailing list
> [email protected]
> http://tiker.net/mailman/listinfo/pycuda_tiker.net


Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to