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
libEGL.so.1
libEGL.so.1.0
libGLC.a
libGLC.la
libGLC.so
libGLC.so.0
libGLC.so.0.0.7
libGLESv2.so.2
libGLESv2.so.2.0.0
libGLEWmx.so.1.5
libGLEWmx.so.1.5.2
libGLEW.so.1.5
libGLEW.so.1.5.2
libGL.la
libGL.so
libGL.so.1
libGL.so.280.13
libGLU.a
libGLU.so
libGLU.so.1
libGLU.so.1.3.071000
libGLw.a
libGLw.so
libGLw.so.1
libGLw.so.1.0.0

but it's still tell me that :(

my system Ubuntu 11.04, Nvidia video card, Gnome.

btw ldconfig, and other won't help :\
LVL 4
underskyAsked:
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/libGL.so.1 into /enet/.libs/libGL.so and it works ^^
0
 
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 :(
0
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.