You are not logged in.
I have installed the amdgpu-pro package available at the Arch Linux CN repository here:
https://github.com/archlinuxcn/repo
Now, I am trying to debug an issue where any program that I try to build that requires OpenGL is not able to find it. The package has installed it here:
60> ls /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.*
/opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so@ /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1@ /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1.2
And, it added a file in /etc/ld.so.conf.d:
61> cat /etc/ld.so.conf.d/amdgpu-pro.conf
/opt/amdgpu-pro/lib/x86_64-linux-gnu/
Even ldconfig claims it is in the cache:
63> ldconfig -p | grep libGL.so
libGL.so.1 (libc6,x86-64) => /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1
libGL.so.1 (libc6) => /opt/amdgpu-pro/lib/i386-linux-gnu/libGL.so.1
libGL.so (libc6,x86-64) => /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so
libGL.so (libc6) => /opt/amdgpu-pro/lib/i386-linux-gnu/libGL.so
However, any attempt at compiling a program with this library fails and states that it cannot be found:
19> g++ `sdl2-config --cflags --libs` -lGL -lGLU -o shader_compiler shader_compiler.cpp
/bin/ld: cannot find -lGL
It doesn't even work when I set the LD_LIBRARY_PATH:
20> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/amdgpu-pro/lib/x86_64-linux-gnu/ g++ `sdl2-config --cflags --libs` -lGL -lGLU -o shader_compiler shader_compiler.cpp
/bin/ld: cannot find -lGL
What can I do to debug this problem further?
Last edited by Renfield (2017-11-09 00:52:04)
Offline
I realized that I was confusing the loader and the linker. When I set the LIBRARY_PATH=/opt/amdgpu-pro/lib/x86_64-linux-gnu, then I am able to build programs and AUR packages which rely on OpenGL.
Offline