且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-11-10 17:04:40

请参见 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