nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Cuda compile troubl /usr/bin/ld: cannot find -lcudart (http://www.nvnews.net/vbulletin/showthread.php?t=155120)

KnutJorgen 09-15-10 12:48 PM

Cuda compile troubl /usr/bin/ld: cannot find -lcudart
 
I am build vmd a program that uses cuda to visualized molecules. But I am getting, /usr/bin/ld: cannot find -lcudart, even though I have added the path to ld.conf.d. I am using Fedora 13. Should I also install the developer version of the nvidia driver as well. I have used rpmfusion rpm package.

[knutjbj@knutjorgen vmd]$ sudo ldconfig -v |grep cuda
/usr/local/cuda/lib64:
libcudart.so.3 -> libcudart.so.3.2.9
libcudartemu.so.3 -> libcudartemu.so.3.0.14
/usr/local/cuda/lib:
libcudart.so.3 -> libcudart.so.3.2.9
libcudartemu.so.3 -> libcudartemu.so.3.0.14
libcuda.so.1 -> libcuda.so.256.53
libcuda.so.1 -> libcuda.so.256.53
libicudata.so.42 -> libicudata.so.42.1
libicudata.so.42 -> libicudata.so.42.1

VLJ 09-16-10 06:47 AM

Re: Cuda compile troubl /usr/bin/ld: cannot find -lcudart
 
I had some issue as well, I solved it by manually adding a symbolic link in /usr/lib64.

By the way, why you have no libcudart.so in this list ? ldconfig always look for libcudard.so, not the suffixed version...

conky 09-16-10 12:53 PM

Re: Cuda compile troubl /usr/bin/ld: cannot find -lcudart
 
The problem is in the build process. VMD's build scripts are a mess. He needs to add -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib to the libpath in the Makefile or in their configure script before configuring. VMD's configure is not autoconf generated, it's just a shell script. It has a lot of hardcoded paths in it.


All times are GMT -5. The time now is 09:55 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.