Allow running player from cdist-built trees.
authorCarl Hetherington <cth@carlh.net>
Wed, 24 Jul 2024 16:46:43 +0000 (18:46 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 27 Jul 2024 11:10:44 +0000 (13:10 +0200)
run/dcpomatic_player

index 0c565c25186c7c268d08ca9f7973884801cfcc3c..96806bba1d3c92b34b863e761168a1e07ecbcdd9 100755 (executable)
@@ -4,6 +4,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
 source $DIR/environment
 binary=build/src/tools/dcpomatic2_player
 
+# Allow running from a tree built using cdist
+export LD_LIBRARY_PATH=$DIR/../../../lib:$DIR/../../../lib64:$LD_LIBRARY_PATH
+
 if [ "$1" == "--debug" ]; then
     shift
     gdb --args build/src/tools/dcpomatic2_player $*