/usr/bin/ld: cannot find -lglut

Started by
1 comment, last by nik600 19 years, 2 months ago
hi i've downloaded and example from Nehegamedev.net, but i cannot compile it, because the compiler give me some error:

.o -L/usr/X11R6/lib -lX11 -lXi -lXmu -lGL -lglut -lGLU -lm
/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
make: *** [mg] Error 1

what shall i do?
Advertisement
Quote:Original post by nik600
hi

i've downloaded and example from Nehegamedev.net, but i cannot compile it, because the compiler give me some error:

.o -L/usr/X11R6/lib -lX11 -lXi -lXmu -lGL -lglut -lGLU -lm/usr/bin/ld: cannot find -lglutcollect2: ld returned 1 exit statusmake: *** [mg] Error 1


what shall i do?


What distro are you using ?
Have you got libglut installed ? (try "ldconfig -p | grep glut" as a start.
On my box I get
ldconfig -p | grep glutlibglut.so.3 (libc6) => /usr/lib/libglut.so.3libglut.so (libc6) => /usr/lib/libglut.so


Check with your package managemnt tools (depends on distro) that you have the correct development libs/packages installed.

Peter
thank's a lot to your reply!

This topic is closed to new replies.

Advertisement