From b01340f5563c39d4c086d2e03e258dd168db6b42 Mon Sep 17 00:00:00 2001 From: barts Date: Tue, 20 Feb 2024 16:59:36 +0100 Subject: [PATCH] fix: wrong linker path --- scripts/install/snapshot | 2 +- scripts/install/snapshot_tests | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/install/snapshot b/scripts/install/snapshot index b8afc3a..29ec74c 100755 --- a/scripts/install/snapshot +++ b/scripts/install/snapshot @@ -12,6 +12,6 @@ while [ -L "$source" ]; do done this_dir=$(cd -P "$(dirname "$source")" >/dev/null 2>&1 && pwd) -LD_LIBRARY_PATH="$this_dir" +LD_LIBRARY_PATH="$this_dir/runtime" export LD_LIBRARY_PATH "$this_dir/runtime/snapshot_bin" "$@" diff --git a/scripts/install/snapshot_tests b/scripts/install/snapshot_tests index b520c0d..fc56423 100755 --- a/scripts/install/snapshot_tests +++ b/scripts/install/snapshot_tests @@ -12,8 +12,11 @@ while [ -L "$source" ]; do done this_dir=$(cd -P "$(dirname "$source")" >/dev/null 2>&1 && pwd) -export LD_LIBRARY_PATH="$this_dir" -export QT_QPA_PLATFORM=offscreen +LD_LIBRARY_PATH="$this_dir/runtime" +export LD_LIBRARY_PATH + +QT_QPA_PLATFORM=offscreen +export QT_QPA_PLATFORM ldd "$this_dir/runtime/tests_bin" | grep "not found" && exit 1 "$this_dir/runtime/tests_bin" "$@"