我在我的ubuntu上安装了cuda 6.5。 我的视频卡是GTX titan。
当我想制作其中一个cuda样本(... /模拟/粒子)时 我收到这条消息:
>>> WARNING - libGLU.so not found, refer to CUDA Samples release notes for how to find and install them. <<<
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50 -o particleSystem.o -c particleSystem.cpp
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50 -o particleSystem_cuda.o -c particleSystem_cuda.cu
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50 -o particles.o -c particles.cpp
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50 -o render_particles.o -c render_particles.cpp
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50 -o shaders.o -c shaders.cpp
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50 -o particles particleSystem.o particleSystem_cuda.o particles.o render_particles.o shaders.o -L../../common/lib/linux/x86_64 -L/usr/lib/nvidia-340 -lGL -lGLU -lX11 -lXi -lXmu -lglut -lGLEW
[@] mkdir -p ../../bin/x86_64/linux/release
[@] cp particles ../../bin/x86_64/linux/release
似乎Cuda找不到LibGLU。
由于未满足的依赖关系,我无法安装&#34; libglu1-mesa-dev&#34;
如果你帮助我,我感激不尽。 感谢
更新: 我有Ubuntu 14.04 64位。 我跑的时候:
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev
我明白了:
build-essential is already the newest version.
libglu1-mesa is already the newest version.
libx11-dev is already the newest version.
libx11-dev set to manually installed.
libxi-dev is already the newest version.
libxmu-dev is already the newest version.
libgl1-mesa-glx is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
freeglut3-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
libgl-dev
libglu1-mesa-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
libgl-dev
E: Unable to correct problems, you have held broken packages.
答案 0 :(得分:3)
请参阅4.7 of the linux getting started guide部分:
如果您希望构建所有示例,包括具有图形界面而非命令行界面的示例,则可能需要其他系统库或标头。虽然每个Linux发行版在包名和包安装过程方面略有不同,但最可能需要的库和标题是OpenGL(例如,Mesa),GLU,GLUT和X11(包括Xi,Xmu和GLX)。
在Ubuntu上,可以按如下方式安装:
$ sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev
答案 1 :(得分:0)
apt-get install freeglut3-dev libglu1-mesa-dev
应该足以在不引起任何冲突的情况下提取所有依赖项。
我今天刚刚在Ubuntu 14.04上用Titan X Pascal和CUDA 7.5做了这个