Eu costumava update-alternatives
selecionarnvidia-367como provedor do opengl.
eu executei o ldconfig
Verifiquei se todos os links simbólicos são válidos e apontam para a pasta correta·
root@laptop:/etc/ld.so.conf.d# ls -halt
lrwxrwxrwx 1 root root 41 sep. 2 18:59 i386-linux-gnu_EGL.conf -> /etc/alternatives/i386-linux-gnu_egl_conf
lrwxrwxrwx 1 root root 40 sep. 2 18:59 i386-linux-gnu_GL.conf -> /etc/alternatives/i386-linux-gnu_gl_conf
lrwxrwxrwx 1 root root 43 sep. 2 18:59 x86_64-linux-gnu_EGL.conf -> /etc/alternatives/x86_64-linux-gnu_egl_conf
lrwxrwxrwx 1 root root 42 sep. 2 18:59 x86_64-linux-gnu_GL.conf -> /etc/alternatives/x86_64-linux-gnu_gl_conf
root@laptop:/etc/alternatives# cat x86_64-linux-gnu_gl_conf
/usr/lib/nvidia-367
/usr/lib32/nvidia-367
mas ainda assim, quando passo -Wl,--verbose
para g++ durante a construção do meu projeto, recebo o seguinte:
[...]
attempt to open /home/lennart/Qt/5.7/5.7/gcc_64/lib/libGL.so failed
attempt to open /home/lennart/Qt/5.7/5.7/gcc_64/lib/libGL.a failed
attempt to open /usr/lib64/libGL.so failed
attempt to open /usr/lib64/libGL.a failed
attempt to open /usr/lib/gcc/x86_64-linux-gnu/4.9/libGL.so failed
attempt to open /usr/lib/gcc/x86_64-linux-gnu/4.9/libGL.a failed
attempt to open /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libGL.so failed
attempt to open /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libGL.a failed
attempt to open /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib/libGL.so failed
attempt to open /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib/libGL.a failed
attempt to open /lib/x86_64-linux-gnu/libGL.so failed
attempt to open /lib/x86_64-linux-gnu/libGL.a failed
attempt to open /lib/../lib/libGL.so failed
attempt to open /lib/../lib/libGL.a failed
attempt to open /usr/lib/x86_64-linux-gnu/libGL.so failed
attempt to open /usr/lib/x86_64-linux-gnu/libGL.a failed
attempt to open /usr/lib/../lib/libGL.so failed
attempt to open /usr/lib/../lib/libGL.a failed
attempt to open /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../libGL.so failed
attempt to open /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../libGL.a failed
attempt to open //usr/local/lib/x86_64-linux-gnu/libGL.so failed
attempt to open //usr/local/lib/x86_64-linux-gnu/libGL.a failed
attempt to open //lib/x86_64-linux-gnu/libGL.so failed
attempt to open //lib/x86_64-linux-gnu/libGL.a failed
attempt to open //usr/lib/x86_64-linux-gnu/libGL.so failed
attempt to open //usr/lib/x86_64-linux-gnu/libGL.a failed
attempt to open //usr/local/lib64/libGL.so failed
attempt to open //usr/local/lib64/libGL.a failed
attempt to open //lib64/libGL.so failed
attempt to open //lib64/libGL.a failed
attempt to open //usr/lib64/libGL.so failed
attempt to open //usr/lib64/libGL.a failed
attempt to open //usr/local/lib/libGL.so failed
attempt to open //usr/local/lib/libGL.a failed
attempt to open //lib/libGL.so failed
attempt to open //lib/libGL.a failed
attempt to open //usr/lib/libGL.so failed
attempt to open //usr/lib/libGL.a failed
attempt to open //usr/x86_64-linux-gnu/lib64/libGL.so failed
attempt to open //usr/x86_64-linux-gnu/lib64/libGL.a failed
attempt to open //usr/x86_64-linux-gnu/lib/libGL.so failed
attempt to open //usr/x86_64-linux-gnu/lib/libGL.a failed
[...]
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
Como você pode ver, não há menção à pasta nvidia-367 em lugar nenhum, mesmo que ld config esteja claramente configurado para visualizá-la.
O que da?