first commit
This commit is contained in:
28
build.sh
Executable file
28
build.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Build script for gstreamerViewer
|
||||
|
||||
set -e # Exit on error
|
||||
|
||||
echo "=== Building gstreamerViewer ==="
|
||||
|
||||
# Create build directory if it doesn't exist
|
||||
if [ ! -d "build" ]; then
|
||||
echo "Creating build directory..."
|
||||
mkdir -p build
|
||||
fi
|
||||
|
||||
cd build
|
||||
|
||||
echo "Running CMake..."
|
||||
cmake ..
|
||||
|
||||
echo "Building with make..."
|
||||
make -j$(nproc)
|
||||
|
||||
echo ""
|
||||
echo "=== Build successful! ==="
|
||||
echo "Executable: $(pwd)/gstreamerViewer"
|
||||
echo ""
|
||||
echo "To run the application:"
|
||||
echo " cd build && ./gstreamerViewer"
|
||||
echo ""
|
||||
Reference in New Issue
Block a user