ld가 libGL을 찾을 수 없습니다(16.04LTS x64 + Nvidia 드라이버)

ld가 libGL을 찾을 수 없습니다(16.04LTS x64 + Nvidia 드라이버)

나는 update-alternatives선택하곤 했다엔비디아-367OpenGL의 공급자로서.

ldconfig를 실행했습니다.

모든 심볼릭 링크가 유효하고 올바른 폴더를 가리키는지 확인했습니다.

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

-Wl,--verbose하지만 프로젝트를 빌드하는 동안 g++에 전달하면 다음과 같은 결과가 나타납니다.

[...]
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

보시다시피, ld config가 폴더를 보도록 명확하게 구성되어 있어도 nvidia-367 폴더에 대한 언급은 어디에도 없습니다.

무엇을 제공합니까?

관련 정보