Since I bought a new computer (I installed Debian stretch with Qt 5.10.1, and use NVIDIA-Linux-x86_64-390.42.run to install the driver), I can’t anymore compile a Qt project. I always end on the following message : “/usr/bin/ld: cannot find -lGL”
After going through many forum, I can already tell you that I already install libglapi-mesa, libgl1-mesa-dev, libgles1-mesa-dev, libgles2-mesa-dev and xorg-dev, but I still end in the same compile error.
Of course, if I delete -lGL from the Makefile I can compile but I would like to be able to include this library.
Hello generix,
mesa-common-dev is already installed on my computer.
I tried the command :
sh NVIDIA-Linux-x86_64-390.42.run --opengl-headers
But as I have already installed the driver, I end in an error. Here is my nvidia-installer.log:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Jun 15 18:00:18 2018
installer version: 390.42
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
nvidia-installer command line:
./nvidia-installer
--opengl-headers
Unable to load: nvidia-installer ncurses v6 user interface
Using: nvidia-installer ncurses user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in your kernel. This may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading, and you still receive this message, then an error may have occured that has corrupted an NVIDIA kernel module's usage count, for which the simplest remedy is to reboot your computer.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
Is there a way to make it install the headers without installing the driver ?
Hello HussamT,
I have found the file at this address :
The file looks ok.
Check for /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
The first two should point to the third.
If they exist, run ‘ldconfig’ as root.
I’m not really sure how using the binary installer would interact with glvnd. Would also depend on the initial options you chose. Please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post will reveal a paperclip icon.
Hello HussamT,
First I didn’t found the file “libGL.so.1.0.0”
The first link point to libGL.so.1.2.0 which is a file I didn’t found.
The second link point to libGL.so.1.7.0 which is a file that exist.
Anything after the .so.1 doesn’t matter (as long as it exists) however there shouldn’t be both libGL.so.1.2.x and libGL.so.1.7.x as far as I can tell. I don’t know for sure though.
But I believe libGL.so.1 and libGL.so should point to the same file which is not the case on your installation.
In other words, it should be:
It’s like HussamT said, replace the link for libGL.so so it points to
/usr/lib/x86_64-linux-gnu/libGL.so → libGL.so.1.7.0
libGL.so.1.7.0 should be the glvnd stub library installed by the nvidia installer. 1.2.0 was installed by mesa and removed by the .run installer.