I have searched a lot, tried a lot myself and other's advice as well. All
error gone, but 1 error 'cannot find -lcuda' still there. I am posting all
what what i did so maybe someone can point out unnoticed.
CUDA was already installed. Its version is 4.0. python version 2.7.3. Ubuntu
12.04(now). Earlier gcc was 4.4, now 4.6. Errors are still same, so i think
gcc 4.6 is working well for cuda4.0. 
These are all the steps I took from the start till now :

1. Installed necessary libraries (took this from Andreas blog): 
$ sudo apt-get install build-essential python-dev python-setuptools
libboost-python-dev libboost-thread-dev -y

2. set CUDA_ROOT (some forum)
:~ $ export CUDA_ROOT=/usr/local/cuda
:~ $ sudo sh -c 'echo $CUDA_ROOT'
:~ $ sudo -E sh -c 'echo $CUDA_ROOT'

3. added this at the end of .bashrc file (some forum): 
export LD_LIBRARY_PATH=/usr/local/cuda/lib
export PATH=$PATH:/usr/local/cuda/bin

3. ran configure.py like this (Andreas blog):
 $ ./configure.py --cuda-root=/usr/local/cuda --cudadrv-lib-dir=/usr/lib
--boost-inc-dir=/usr/include --boost-lib-dir=/usr/lib
--boost-python-libname=boost_python-py27
--boost-thread-libname=boost_thread-mt 
 
4.$ make -j 4
> 2 errors : whcih i posted in posts above ...........

5. one experienced guy suggested me this:
in ....@ubuntu:/home/mmm/NVIDIA_GPU_Computing_SDK/C/common/common.mk :
after about line 189, OPENGLLIB := -lGL -lGLU -lX11 -lXi -lXmu, add:
OPENGLLIB += -L/usr/lib/nvidia-current -L/usr/lib32/nvidia-current

 •
after about line 271, swap ${RENDERCHECKGLLIB} with ${OPENGLLIB} such that
it looks like:
LIB += $(RENDERCHECKGLLIB) ${OPENGLLIB} $(PARAMGLLIB) ${LIB} -ldl -rdynamic

 •a few (5) lines further, do the same, but remove -lcuda too.
 •a few (7) lines further, do the same as you did in line 271.

I did , but still same error.
There is not 1 search result on google for -lcuda error. Something small is
missing, I can't spot it. After pouring lots of time, I don't want to
abanton it.

Andreas, I appreciate your help. Tomasz's too.
Feel free to ask any question.  

--
View this message in context: 
http://pycuda.2962900.n2.nabble.com/installing-pycuda-2011-2-2-error-cannot-find-lboost-python-mt-tp7481143p7571517.html
Sent from the PyCuda mailing list archive at Nabble.com.

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to