Ashark / archlinux-amdgpu-pro

Radeon Software for Linux (AMDGPU PRO) PKGBUILD generator for ArchLinux AUR
https://aur.archlinux.org/pkgbase/amdgpu-pro-installer/
119 stars 25 forks source link

AMDGPU missing in PKG_CONFIG_PATH #37

Closed yshui closed 3 years ago

yshui commented 7 years ago

Several libraries (libdrm, etc) is installed into /opt/amdgpu-pro, but that's not in PKG_CONFIG_PATH, so things will refuse to compile.

Better add it to PKG_CONFIG_PATH.

brainpower commented 7 years ago

Can you check if my fix-37 branch [1] fixes your compile issues? (You may have to re-login.)

[1] https://github.com/brainpower/archlinux-amdgpu/tree/fix-37

yshui commented 7 years ago

The problem is kind of complicated. So if you want to compile lib32- which depends on libdrm, you would need /opt/amdgpu-pro/lib/i386-/pkgconfig in the PKG_CONFIG_PATH. But normally PKGBUILDs would only include '/usr/lib32/pkgconfig'

Can we just install amdgpu-pro-libdrm into /usr/lib and /usr/lib32? It conflict with system libdrm anyway.

brainpower commented 7 years ago

I'll look into installing or symlinking the pc files into /usr/lib{,32/pkgconfig/, but that will take some time. Those .pc files have hardcoded paths to /opt/amdgpu inside, so it should suffice to move only those to /usr . I don't want to move the actual .so's, because some .so's have (or at least had at some point) hardcoded paths to other .so's inside and then many things will probably break.

yshui commented 7 years ago

@brainpower I see. That makes sense

Ashark commented 3 years ago

Stale