/ usr / bin / ld: cannot find -lglut

I get the following error when trying to install mp4box and run 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 checking the libraries, 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 am a complete newbie to Linux, so please keep this in mind! Many thanks!

+5
source share
2 answers

You will need a GLUT implementation. The easiest way to get is FreeGLUT:

sudo apt-get install freeglut3 freeglut3-dev
+14
source

I worked with the same problem when I tried to install MP4Box and found a solution.

First of all, check if there are any errors in the configuration file. for example (resolved error): in this case you need to change the line TMPDIR1 in the configuration file (line 7 to fi) to the following:

    TMPDIR1=/usr/local/src

then you need to set the kink using the following command:

    yum install  glut-devel

,

    ls /usr/lib64 |grep glut

, libglut.so( libglut.so @, )

0

All Articles