CUDA 6.5找不到-libGLU。 (在Ubuntu 14.04 64位上) [英] Cuda 6.5 cannot find - libGLU. (On ubuntu 14.04 64 bit)

查看:96
本文介绍了CUDA 6.5找不到-libGLU。 (在Ubuntu 14.04 64位上)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ubuntu上安装了cuda 6.5。
我的视频卡是GTX titan。

I have installed cuda 6.5 on my ubuntu. My video card is GTX titan.

当我想制作一个cuda样本(... /模拟/颗粒)
我收到此消息:

When I want to make one of the cuda samples (.../simulations/particles) I get this message:

>>> 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。

It seems Cuda cannot find LibGLU.

,由于依赖关系未得到满足,我无法安装 libglu1-mesa-dev

and due to unmet dependencies I cannot install "libglu1-mesa-dev"

如果您能帮助我,我非常感谢。
谢谢

I appreciate if you help me. Thanks

更新:
我有Ubuntu 14.04 64位。
运行时:

Update: I have Ubuntu 14.04 64 bit. 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

我明白了:

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.


推荐答案

请参见 4.7版的Linux入门指南,其中指出:


如果要构建所有示例,包括具有图形界面而不是命令行界面的示例,则可能需要其他系统库或标头。尽管每个Linux发行版在软件包名称和软件包安装过程方面都略有不同,但最可能需要的库和标头是OpenGL(例如Mesa),GLU,GLUT和X11(包括Xi,Xmu和GLX)。

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 (e.g., Mesa), GLU, GLUT, and X11 (including Xi, Xmu, and GLX).

在Ubuntu上,可以按以下方式安装:

On Ubuntu, those can be installed as follows:


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

这篇关于CUDA 6.5找不到-libGLU。 (在Ubuntu 14.04 64位上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆