[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2011-10-16
2
Medium Priority
?
691 Views
Last Modified: 2012-08-13
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 :\
0
Comment
Question by:undersky
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
undersky earned 0 total points
ID: 36975754
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
 
LVL 4

Author Closing Comment

by:undersky
ID: 36975758
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question