我正在尝试在Ubuntu 14.04上安装CUDA 7.0.我按照
here所述的安装说明进行操作.具体来说,我按照第3.6节和第6章中的步骤进行操作.在使用make编译示例(第6.2.2.2节)时,我收到以下错误:
make[1]: Entering directory `/usr/local/cuda-7.0/samples/3_Imaging/cudaDecodeGL' /usr/local/cuda-7.0/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_20,code=compute_20 -o cudaDecodeGL FrameQueue.o ImageGL.o VideoDecoder.o VideoParser.o VideoSource.o cudaModuleMgr.o cudaProcessFrame.o videoDecodeGL.o -L../../common/lib/linux/x86_64 -L/usr/lib/"nvidia-346" -lGL -lGLU -lX11 -lXi -lXmu -lglut -lGLEW -lcuda -lcudart -lnvcuvid /usr/bin/ld: cannot find -lnvcuvid collect2: error: ld returned 1 exit status make[1]: *** [cudaDecodeGL] Error 1 make[1]: Leaving directory `/usr/local/cuda-7.0/samples/3_Imaging/cudaDecodeGL' make: *** [3_Imaging/cudaDecodeGL/Makefile.ph_build] Error 2
如果你注意到,有-L /usr/lib /“nvidia-346”.就我而言,我已经安装了nvidia-349.对我有用的是编辑NVIDIA_CUDA-7.0_Samples / 3_Imaging / cudaDecodeGL / findgllib.mk并将UBUNTU_PKG_NAME =“nvidia-346”更改为nvidia-349.
原文链接:https://www.f2er.com/ubuntu/347316.html