Sign in to follow this  
nik600

/usr/bin/ld: cannot find -lglut

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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 -lglut
collect2: ld returned 1 exit status
make: *** [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 glut
libglut.so.3 (libc6) => /usr/lib/libglut.so.3
libglut.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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this