Compile problem /usr/bin/ld: cannot find -lGL

i Have a problem with compile script,

.......fpsgame/waypoint.o fpsgame/weapon.o -Lenet/.libs -lenet -L/usr/X11R6/lib -lX11 `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lrt
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status

make: *** [client] ¿¿¿¿¿¿ 1

it's told me that libGL can't been founded, but, i have installed all -dev packages, also have all links and librares into /usr/lib/ :

undersky@skypc:/media/Store/Games/sauerbraten/src$ ls /usr/lib | grep GL

but it's still tell me that :(

my system Ubuntu 11.04, Nvidia video card, Gnome.

btw ldconfig, and other won't help :\
Who is Participating?
underskyConnect With a Mentor Author Commented:
Ahh... when i read self message, i understand that LD, get wrong library distonations :((

so i just make

sudo ln -s /usr/lib/ into /enet/.libs/ and it works ^^
underskyAuthor Commented:
ok solutions is not to hard, but i found that many get this problem... it's official source.. and in it they put wrong library distanation :(
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.