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

Posted on 2011-10-16
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

but it's still tell me that :(

my system Ubuntu 11.04, Nvidia video card, Gnome.

btw ldconfig, and other won't help :\
Question by:undersky
    LVL 4

    Accepted Solution

    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 ^^
    LVL 4

    Author Closing Comment

    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 :(

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (…
    What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
    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 technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now