简体   繁体   English

CUDA 6.5找不到-libGLU。 (在Ubuntu 14.04 64位上)

[英]Cuda 6.5 cannot find - libGLU. (On ubuntu 14.04 64 bit)

I have installed cuda 6.5 on my ubuntu. 我已经在Ubuntu上安装了cuda 6.5。 My video card is GTX titan. 我的显卡是GTX titan。

When I want to make one of the cuda samples (.../simulations/particles) I get this message: 当我想制作一个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

It seems Cuda cannot find LibGLU. 似乎Cuda找不到LibGLU。

and due to unmet dependencies I cannot install "libglu1-mesa-dev" 由于未满足的依赖关系,我无法安装“ libglu1-mesa-dev”

I appreciate if you help me. 谢谢您的帮助。 Thanks 谢谢


Update: I have Ubuntu 14.04 64 bit. 更新:我有Ubuntu 14.04 64位。 When I run: 当我跑步时:

sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev

I get this: 我得到这个:

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.

Refer to section 4.7 of the linux getting started guide where it states: 请参阅linux入门指南的4.7其中指出:

If you wish to build all the samples, including those with graphical rather than command-line interfaces, additional system libraries or headers may be required. 如果您希望构建所有示例,包括具有图形界面而不是命令行界面的示例,则可能需要其他系统库或标头。 While every Linux distribution is slightly different with respect to package names and package installation procedures, the libraries and headers most likely to be necessary are OpenGL (eg, Mesa), GLU, GLUT, and X11 (including Xi, Xmu, and GLX). 尽管每个Linux发行版在软件包名称和软件包安装过程方面都略有不同,但最可能需要的库和标头是OpenGL(例如Mesa),GLU,GLUT和X11(包括Xi,Xmu和GLX)。

On Ubuntu, those can be installed as follows: 在Ubuntu上,可以如下安装:

$ sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev
apt-get install freeglut3-dev libglu1-mesa-dev

Should be enough to pull all dependencies without causing any conflicts. 应该足以拉动所有依赖关系而不会引起任何冲突。

I just did this today on Ubuntu 14.04 with Titan X Pascal and CUDA 7.5 我今天刚刚在Ubuntu 14.04上使用Titan X Pascal和CUDA 7.5进行了此操作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM