mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
hushing makefile
This commit is contained in:
parent
add12a7d94
commit
cabb03a1bd
1 changed files with 14 additions and 9 deletions
23
setup.sh
23
setup.sh
|
|
@ -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
|
||||||
|
|
@ -87,7 +92,7 @@ echo "────────────────────────
|
||||||
echo " Setup Complete"
|
echo " Setup Complete"
|
||||||
echo "─────────────────────────────────────────────"
|
echo "─────────────────────────────────────────────"
|
||||||
echo ""
|
echo ""
|
||||||
echo "The TimeTurner is ready. But remember:"
|
echo "The TimeTurner is ready. But remember:"
|
||||||
echo "\"You must not be seen.\" – Hermione Granger"
|
echo "\"You must not be seen.\" – Hermione Granger"
|
||||||
echo "Guidance provided by Luna, Department of Temporal Engineering."
|
echo "Guidance provided by Luna, Department of Temporal Engineering."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue