NVIDIA-CURRENT-DEV: LD_LIBRARY_PATH has three libGL.so* (32,64=mesa,current)
$ uname -a
Linux ubuntu-11-10-amd64 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
$ g++ main.c -lX11 -lGL -lpng -std=c++0x
undefined reference to `glGetActiveUni
$ g++ main.c -L/usr/
all is ok, but ^^^^^^^
compiles and runs fine with above library path specification
Why should I have to choose manually the -L/usr/
It appears that there are three distinct libGL.so files in the LD_LIBRARY_PATH and by default the MESA one seems to be first -- Definatley do not want this since that is only software and openGL 2.1. I am coding openGL 3+ in c/c++.
Here's a more complete list of the exact library files and the LD_LIBRARY_PATH
$ cat /etc/ld.
/usr/lib/
/lib/x86_
/usr/lib/
/usr/lib/
/usr/lib32/
$ locate libGL.
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib32/
/usr/lib32/
/usr/lib32/
/usr/lib32/
$ ls -alF /usr/lib/
-rw-r--r-- 1 root root 652 2011-07-27 17:57 /usr/lib32/
lrwxrwxrwx 1 root root 10 2011-10-10 11:40 /usr/lib32/
lrwxrwxrwx 1 root root 15 2011-10-10 11:40 /usr/lib32/
-rw-r--r-- 1 root root 794628 2011-10-10 11:41 /usr/lib32/
lrwxrwxrwx 1 root root 10 2011-10-10 11:40 /usr/lib/
lrwxrwxrwx 1 root root 15 2011-10-10 11:40 /usr/lib/
-rw-r--r-- 1 root root 1025968 2011-10-10 11:41 /usr/lib/
!!!!!!!
lrwxrwxrwx 1 root root 13 2011-08-10 01:20 /usr/lib/
lrwxrwxrwx 1 root root 10 2011-08-10 01:20 /usr/lib/
lrwxrwxrwx 1 root root 12 2011-11-19 20:31 /usr/lib/
-rw-r--r-- 1 root root 372400 2011-08-10 01:21 /usr/lib/
Should I report this as a bug?
Is it ok to just change the link from /usr/lib/
to the proprietary one (but which one?) ie /usr/lib/
Is there a way to just run nvidia's sh file directly instead of using ubuntu ... it was easy enough in the pre-11.10 days
to simply
sudo services gdm stop
sudo sh NVIDIA-
sudo service gdm start
everytime the old ubuntu updated the kernel
In fact, I would prefer to have the latest NVIDIA drivers (coding openGL shaders and openCL)
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: