/usr/bin/ld:找不到-lglut [英] /usr/bin/ld: cannot find -lglut

查看:91
本文介绍了/usr/bin/ld:找不到-lglut的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试安装mp4box并运行make lib命令时出现以下错误.

I'm getting the following error while trying to install mp4box and running the make lib command.

/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
make[1]: *** [libgpac.so] Error 1
make[1]: Leaving directory `/gpac/src'
make: *** [lib] Error 2

我检查了得到的库后:

lrwxrwxrwx  1 root root      13 Feb 15 18:25 libGL.so -> mesa/libGL.so
-rw-r--r--  1 root root  905952 Aug 23  2011 libGLU.a
lrwxrwxrwx  1 root root      11 Feb 15 18:26 libGLU.so -> libGLU.so.1
lrwxrwxrwx  1 root root      20 Feb 15 18:25 libGLU.so.1 -> libGLU.so.1.3.071000
-rw-r--r--  1 root root  453272 Aug 23  2011 libGLU.so.1.3.071000
baseem@348588:/usr/lib$ ln -s libGLU.so.1.3.071000 libGL.so
ln: creating symbolic link `libGL.so': File exists

注意:我是linux的新手,因此请考虑到这一点!非常感谢!

Note: I'm a total newb in linux so please take that into consideration! Thanks a lot!

推荐答案

您将需要实现GLUT.最容易获得的是FreeGLUT:

You're going to need an implementation of GLUT. The easiest one to get is FreeGLUT:

sudo apt-get install freeglut3 freeglut3-dev

这篇关于/usr/bin/ld:找不到-lglut的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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