hushing makefile

This commit is contained in:
Chris Frankland-Wright 2025-06-23 16:08:58 +01:00
parent add12a7d94
commit cabb03a1bd

View file

@ -33,7 +33,10 @@ sudo apt install -y git curl python3 python3-pip build-essential cmake
# --------------------------------------------------------- # ---------------------------------------------------------
echo "" echo ""
echo "Step 3: Installing audio libraries and tools..." echo "Step 3: Installing audio libraries and tools..."
sudo apt install -y alsa-utils ffmpeg portaudio19-dev python3-pyaudio libasound2-dev libjack-jackd2-dev || echo "Warning: Some audio dependencies may have failed to install, continuing..." sudo apt install -y alsa-utils ffmpeg \
portaudio19-dev python3-pyaudio \
libasound2-dev libjack-jackd2-dev \
|| echo "Warning: Some audio dependencies may have failed to install — continuing anyway."
# --------------------------------------------------------- # ---------------------------------------------------------
# Step 4: Install Python packages # Step 4: Install Python packages
@ -43,10 +46,10 @@ echo "Step 4: Installing Python packages..."
pip3 install numpy --break-system-packages pip3 install numpy --break-system-packages
# --------------------------------------------------------- # ---------------------------------------------------------
# Step 5: Build and install libltc (dependency of ltc-tools) # Step 5: Build and install libltc (needed by ltc-tools)
# --------------------------------------------------------- # ---------------------------------------------------------
echo "" echo ""
echo "Step 5: Installing libltc (required for ltc-tools)..." echo "Step 5: Building libltc (the heart of our time-magic)..."
cd ~ cd ~
if [ ! -d "libltc" ]; then if [ ! -d "libltc" ]; then
echo "Cloning libltc from GitHub..." echo "Cloning libltc from GitHub..."
@ -56,25 +59,27 @@ cd libltc
mkdir -p build && cd build mkdir -p build && cd build
echo "Configuring libltc..." echo "Configuring libltc..."
cmake .. cmake ..
echo "Building libltc..." echo "Compiling libltc..."
make make
echo "Installing libltc..." echo "Installing libltc..."
sudo make install sudo make install
sudo ldconfig sudo ldconfig # refresh library cache so ld can find libltc
# --------------------------------------------------------- # ---------------------------------------------------------
# Step 6: Build and install ltc-tools # Step 6: Build and install ltc-tools
# --------------------------------------------------------- # ---------------------------------------------------------
echo "" echo ""
echo "Step 6: Building and installing ltc-tools..." echo "Step 6: Building ltc-tools (with a gentle nudge)..."
cd ~ cd ~
if [ ! -d "ltc-tools" ]; then if [ ! -d "ltc-tools" ]; then
echo "Cloning ltc-tools from GitHub..." echo "Cloning ltc-tools from GitHub..."
git clone https://github.com/x42/ltc-tools.git git clone https://github.com/x42/ltc-tools.git
fi fi
cd ltc-tools cd ltc-tools
echo "Compiling ltc-tools..."
make echo "Compiling ltc-tools (telling it HAVE_LIBLTC=true)..."
make HAVE_LIBLTC=true
echo "Installing ltc-tools..." echo "Installing ltc-tools..."
sudo make install sudo make install
sudo ldconfig sudo ldconfig