Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-15-10, 12:48 PM   #1
KnutJorgen
Registered User
 
Join Date: Dec 2003
Posts: 38
Smile 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
KnutJorgen is offline   Reply With Quote
Old 09-16-10, 06:47 AM   #2
VLJ
Registered User
 
Join Date: Dec 2006
Posts: 16
Default 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...
VLJ is offline   Reply With Quote
Old 09-16-10, 12:53 PM   #3
conky
Registered User
 
Join Date: Nov 2007
Posts: 70
Default 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.
conky is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:50 AM.


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