Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/usr/bin/ld: cannot find -lglut

Tags:

linux

ubuntu

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

After I check the libraries that's what I get:

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

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

like image 201
Baseem Najjar Avatar asked Feb 25 '13 09:02

Baseem Najjar


1 Answers

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

sudo apt-get install freeglut3 freeglut3-dev
like image 109
nneonneo Avatar answered Oct 23 '22 03:10

nneonneo