re-organize folder structure
This commit is contained in:
28
scripts/run.sh
Executable file
28
scripts/run.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user