mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
build ltc tools from scratch
This commit is contained in:
parent
7a5c2e3ea3
commit
dd1eb9846c
1 changed files with 19 additions and 5 deletions
24
setup.sh
24
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue