From: Carl Hetherington Date: Sun, 4 Feb 2024 11:25:41 +0000 (+0100) Subject: Add DYLD_LIBRARY_PATH to dcpomatic_disk. X-Git-Tag: v2.16.75~16 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=32362a0c6e4657f6b2990bc638c6d13dda5fa532 Add DYLD_LIBRARY_PATH to dcpomatic_disk. --- diff --git a/run/dcpomatic_disk b/run/dcpomatic_disk index 8c13183b6..ff5d8e7e5 100755 --- a/run/dcpomatic_disk +++ b/run/dcpomatic_disk @@ -3,6 +3,14 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source $DIR/environment +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 build/src/tools/dcpomatic2_disk $*