From 6bb921077db94622368a4fda26a3dbf4c837e356 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 4 Feb 2024 12:23:37 +0100 Subject: [PATCH] Add DYLD_LIBRARY_PATH to run/dcpomatic --- run/dcpomatic | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/run/dcpomatic b/run/dcpomatic index 429139dac..38de6a670 100755 --- a/run/dcpomatic +++ b/run/dcpomatic @@ -4,6 +4,14 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source $DIR/environment binary=$build/src/tools/dcpomatic2 +if [[ "$(uname -m)" == arm64 ]]; then + env=arm64/11.0 +else + env=x86_64/10.10 +fi + +export DYLD_LIBRARY_PATH=/Users/cah/osx-environment/$env/lib:/usr/local/lib + if [ "$1" == "--debug" ]; then shift gdb --args $binary $* -- 2.30.2