From dd1eb9846c08b973534bde7baf1c6a6192ff8780 Mon Sep 17 00:00:00 2001 From: Chris Frankland-Wright Date: Mon, 23 Jun 2025 15:22:02 +0100 Subject: [PATCH] build ltc tools from scratch --- setup.sh | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/setup.sh b/setup.sh index d9d19cf..11b7975 100644 --- a/setup.sh +++ b/setup.sh @@ -15,17 +15,31 @@ echo "" sudo apt update && sudo apt upgrade -y # Essential tools -sudo apt install -y git curl python3 python3-pip build-essential +sudo apt install -y git curl python3 python3-pip build-essential cmake # Audio tools -sudo apt install -y alsa-utils ffmpeg portaudio19-dev python3-pyaudio - -# LTC decoding tools -sudo apt install -y ltc-tools +sudo apt install -y alsa-utils ffmpeg portaudio19-dev python3-pyaudio libasound2-dev libjack-jackd2-dev # Python packages pip3 install numpy +# Install ltc-tools from source if not available +if ! command -v ltcdump >/dev/null 2>&1; then + echo "ltc-tools not found, building from source..." + cd ~ + if [ ! -d "libltc" ]; then + git clone https://github.com/x42/libltc.git + fi + cd libltc + mkdir -p build && cd build + cmake .. + make + sudo make install + sudo ldconfig +else + echo "ltc-tools already installed." +fi + echo "" echo "─────────────────────────────────────────────" echo " Setup Complete"