aboutsummaryrefslogtreecommitdiffstats
path: root/appimage/build-appimage
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-02 19:59:01 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-02 19:59:01 +0200
commitc78229b4e66acb48d28ce83bc4355a44508f3b9a (patch)
tree4692b8bc5f9d89991139e3af913c3041ad1bd1a0 /appimage/build-appimage
parentf8e97e0ed56cf5942ef36d34f1c64185c9c84d5c (diff)
downloadqpdf-c78229b4e66acb48d28ce83bc4355a44508f3b9a.tar.zst
Fix AppImage build: need LD_LIBRARY_PATH
I'm not sure why this is needed now and wasn't needed before since the cmake changes have been in main for a while and there don't appear to be recent changes to the appimage build tools. This change adds to lib directory to LD_LIBRARY_PATH so the appimage tools' ldd check will pass. This is an appropriate change since the directory that is added will be in the standard load path when installed.
Diffstat (limited to 'appimage/build-appimage')
-rwxr-xr-xappimage/build-appimage9
1 files changed, 7 insertions, 2 deletions
diff --git a/appimage/build-appimage b/appimage/build-appimage
index 82c82812..54fc2511 100755
--- a/appimage/build-appimage
+++ b/appimage/build-appimage
@@ -21,7 +21,7 @@
# into the 'CUSTOM_CONFIGURE' environment variable and exporting it
# before running this script. For example:
#
-# export CUSTOM_CONFIGURE=" --enable-test-compare-images [--more-other-options]"
+# export CUSTOM_CONFIGURE=" -DSOME_OTHER_OPTION=1 [...]"
#
# ATTENTION:
#
@@ -151,7 +151,12 @@ wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous
chmod a+x linuxdeployqt*.AppImage
# Set up a clean environment:
-unset QTDIR; unset QT_PLUGIN_PATH; unset LD_LIBRARY_PATH
+unset QTDIR; unset QT_PLUGIN_PATH
+
+# Since cmake strips runpath information for executables and we are
+# installing with DESTDIR, we need to set LD_LIBRARY_PATH or else ldd
+# will fail on the resulting executables
+export LD_LIBRARY_PATH=$(dirname $(find $appdir -type l -name libqpdf.so.28))
# Let 'linuxdeployqt' do its first stage of work:
./linuxdeployqt*.AppImage appdir/usr/share/applications/*.desktop -bundle-non-qt-libs