Jump to content
  • Advertisement
Sign in to follow this  
nik600

/usr/bin/ld: cannot find -lglut

This topic is 4875 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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 -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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!