29 lines
697 B
Bash
Executable File
29 lines
697 B
Bash
Executable File
#!/bin/bash
|
|
# Run script for gstreamerViewer
|
|
|
|
SOCKET="/tmp/vizion_control.sock"
|
|
EXECUTABLE="./build/gstreamerViewer"
|
|
|
|
# Check if executable exists
|
|
if [ ! -f "$EXECUTABLE" ]; then
|
|
echo "Error: Executable not found at $EXECUTABLE"
|
|
echo "Please run ./build.sh first to build the application."
|
|
exit 1
|
|
fi
|
|
|
|
# Check if VizionStreamer socket exists
|
|
if [ ! -S "$SOCKET" ]; then
|
|
echo "Warning: VizionStreamer socket not found at $SOCKET"
|
|
echo "Please ensure VizionStreamer backend is running."
|
|
echo ""
|
|
read -p "Continue anyway? (y/n) " -n 1 -r
|
|
echo
|
|
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
echo "Starting gstreamerViewer..."
|
|
cd build
|
|
./gstreamerViewer
|