#!/bin/bash
selfpath=$(cd $(dirname "$0") && pwd)
export DISPLAY=:0.0
export LD_LIBRARY_PATH=${selfpath}/../lib:${selfpath}/../lib/lib:${selfpath}/../lib/plugins:${selfpath}/../lib/qml:${selfpath}/../lib/opencv4-8-0/lib:${selfpath}/../lib/usbhid
#echo $LD_LIBRARY_PATH
export QT_QPA_PLATFORM_PLUGIN_PATH=${selfpath}/../lib/plugins
#export VLC_PLUGIN_PATH=${selfpath}/../lib/plugins
export QML2_IMPORT_PATH=${selfpath}/../lib/qml
export XDG_RUNTIME_DIR=/tmp/runtime-root
export GST_PLUGIN_PATH=${selfpath}/../lib/gstreamer-1.0
SCRIPT_DIR=$(cd $(dirname ${BASH_SOURCE[0]}); pwd)
ldd libPlayBoard.so
${SCRIPT_DIR}/AmdoxWhiteBoard2
