PDA

View Full Version : What the heck is with libGL.so ???



kudu
October 3rd, 2005, 02:47 AM
Trying to build an OpenGL program using both gcc at the terminal and Anjuta but no matter what I do ld can't find libGL. So I looked in /usr/X11R6/lib to see what is what and when I right click on libGL.so to check out it's properties, it disappears!! Reinstall mesa stuff, disappears. Ad infinitum. What gives ??

I have libGL.a but it doesn't seem to make the linker happy. Please HELP!

kudu

Oberjaeger
October 3rd, 2005, 08:21 AM
A file dissapearing like that in nautilus can happen when it's a symbolic link to a file that doesn't exist. Try running 'ls -l /usr/X11R6/lib' in a terminal to see where libGL.so is pointing to. Probably something like /usr/X11Rg/lib/libGL.so.1 .

The real libGL will probably have a similar name, create the working link by issuing the command

ln -s /usr/X11R6/lib/libGL.so.1.2 /usr/X11R6/lib/libGL.so

In your case the actual name may vary slightly, libGL.so.1.1 for example.

kudu
October 3rd, 2005, 08:14 PM
This command doesn't seem to do anything, says the file already exists.

"ln -s /usr/X11R6/lib/libGL.so.1.2 /usr/X11R6/lib/libGL.so"

Is this correct ? Or maybe it's reversed ?

When I list the files in X11R6/lib the libGL.so sym link is highlighted red for some reason.

The case of the disappearing sym links continues...

kudu

kudu
October 3rd, 2005, 09:37 PM
I'm wondering do I have to compile mesa even though I installed it using synaptic ?? Is that why I have a bunch of symlinks to nonexistent files ?

How do you set up for OpenGL ?

Questions, questions, questions.

kudu

Oberjaeger
October 5th, 2005, 01:43 AM
Sorry, I forgot to mention that you'll have to delete the broken link first as ln wont overwrite an existing file without the force (-f) option.

rm /usr/X11R6/lib/libGL.so.1.2
ln -s /usr/X11R6/lib/libGL.so.1.2 /usr/X11R6/lib/libGL.so

Lux Perpetua
October 5th, 2005, 05:57 AM
Sorry, I forgot to mention that you'll have to delete the broken link first as ln wont overwrite an existing file without the force (-f) option.
rm /usr/X11R6/lib/libGL.so.1.2
ln -s /usr/X11R6/lib/libGL.so.1.2 /usr/X11R6/lib/libGL.so
Hold on, there, partner! Your instructions will delete libGL.so.1.2 and create a dead link! I think you meant this:

rm /usr/X11R6/lib/libGL.so
ln -s /usr/X11R6/lib/libGL.so.1.2 /usr/X11R6/lib/libGL.so
kudu - a highlighted and red file name from ls probably means it's a dead link.

Oberjaeger
October 5th, 2005, 06:01 PM
Hold on, there, partner! Your instructions will delete libGL.so.1.2 and create a dead link! I think you meant this:

That's what I get for posting at 3am.:???:

drgreborn
October 5th, 2005, 06:18 PM
Just a quick qustion. When I try to do ./configure it stats it can't find my GL is this a similar problem? Sorry to butt in like this.