From 9cb2e6096062a5e7509019754e85124ec4f2a596 Mon Sep 17 00:00:00 2001 From: Zebra2711 <89755535+Zebra2711@users.noreply.github.com> Date: Sun, 11 May 2025 02:00:13 +0700 Subject: [PATCH] fix: error while loading shared libraries (#296) Add the linux-wallpaperengine library directory to the LD_LIBRARY_PATH The linker cannot find the required library because it is not located in the standard system paths. This results in the following error: ./linux-wallpaperengine: error while loading shared libraries: libkissfft-float.so.131: cannot open shared object file: No such file or directory --- packaging/archlinux/PKGBUILD | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packaging/archlinux/PKGBUILD b/packaging/archlinux/PKGBUILD index 6cbc3de..808c8e4 100644 --- a/packaging/archlinux/PKGBUILD +++ b/packaging/archlinux/PKGBUILD @@ -44,8 +44,11 @@ package() { DESTDIR="$pkgdir" cmake --install build # create forwarding script install -d -m755 "${pkgdir}/usr/bin" - echo "#!/bin/bash" > ${pkgdir}/usr/bin/${_pkgname} - echo "cd /opt/${_pkgname}; ./linux-wallpaperengine \$*" >> ${pkgdir}/usr/bin/${_pkgname} + cat > "${pkgdir}/usr/bin/${_pkgname}" << EOF +#!/bin/bash +export LD_LIBRARY_PATH="/opt/${_pkgname}/lib:\$LD_LIBRARY_PATH" +cd /opt/${_pkgname}; ./${_pkgname} "\$@" +EOF chmod +x ${pkgdir}/usr/bin/${_pkgname} chmod +x ${pkgdir}/opt/${_pkgname}/linux-wallpaperengine }