Reblog: Problem with libGL.so on 64-bit Ubuntu

This isn’t a « true » reblog, but I just wanted to say that I had the same problem than the author of the blog post I’m about to link, and that his solution just did the trick for me too, so I thought I would give him full credit for the solution given it just worked completely unaltered in my situation too.

http://techtidings.blogspot.in/2012/01/problem-with-libglso-on-64-bit-ubuntu.html

 What basically happened was that whenever I tried to compile a project using OpenGL on my Ubuntu 14.04 LTS with a NVidia GPU, I had a compiler error:

No rule to make target

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/usr/lib/x86_64-linux-gnu/libGL.so'</strong></em></span>

After struggling with the compiler and Google I realized it actually was a faulty symbolic link in the name of libGL.so that pointed to... nowhere !

So what I had to do, briefly was (I just copy/paste the text of the original author...)
<b>bpaluri3@bpaluri3:~/libfreenect/build$ ls -l /usr/lib/x86_64-linux-gnu/libGL.so </b>
<b>lrwxrwxrwx 1 root root 13 2011-08-10 04:20 /usr/lib/x86_64-linux-gnu/libGL.so -&gt; mesa/libGL.so</b>

<b>bpaluri3@bpaluri3:~/libfreenect/build$ ls -l /usr/lib/x86_64-linux-gnu/mesa/libGL.so </b>
<b>lrwxrwxrwx 1 root root 10 2011-08-10 04:20 /usr/lib/x86_64-linux-gnu/mesa/libGL.so -&gt; libGL.so.1</b>
<div></div>
Then I verified the libGL.so.1 in my /usr/lib directory and found out that it pointed to libGL.so.290.10 which is the file provided by the nvidia driver.

<b>bpaluri3@bpaluri3:~/libfreenect/build$ ls -l /usr/lib/libGL.so.1 </b>
<b>lrwxrwxrwx 1 root root 15 2012-01-09 13:53 /usr/lib/libGL.so.1 -&gt; libGL.so.290.10</b>

I just overwrote the symbolic link in

/usr/lib/x86_64-linux-gnu/libGL.so’ with the nvidia openGL library i.e. `/usr/lib/libGL.so’ ( I had to delete the old symbolic link before I do this ).

bpaluri3@bpaluri3:~/libfreenect/build$ sudo rm /usr/lib/x86_64-linux-gnu/libGL.so 
bpaluri3@bpaluri3:~/libfreenect/build$ sudo ln -s /usr/lib/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so 

Works like a charm now ! 🙂

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée.