Add DYLD_LIBRARY_PATH to run/dcpomatic
authorCarl Hetherington <cth@carlh.net>
Sun, 4 Feb 2024 11:23:37 +0000 (12:23 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 4 Feb 2024 11:23:37 +0000 (12:23 +0100)
run/dcpomatic

index 429139dac3794494b938f6f76e746449e840cbf3..38de6a670b58c874c42cf0d55e4ba83b49ebc7cb 100755 (executable)
@@ -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 $*