mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
hopefully final initial commit
This commit is contained in:
parent
b3513cc58c
commit
83e6581104
1 changed files with 7 additions and 7 deletions
14
setup.sh
14
setup.sh
|
|
@ -43,24 +43,24 @@ echo "Step 4: Installing Python packages..."
|
||||||
pip3 install numpy --break-system-packages
|
pip3 install numpy --break-system-packages
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
# Step 5: Check for or install ltc-tools
|
# Step 5: Check for or install ltc-tools from source
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
echo ""
|
echo ""
|
||||||
echo "Step 5: Verifying LTC tools..."
|
echo "Step 5: Verifying LTC tools..."
|
||||||
if ! command -v ltcdump >/dev/null 2>&1; then
|
if ! command -v ltcdump >/dev/null 2>&1; then
|
||||||
echo "ltc-tools not found, building from source..."
|
echo "ltc-tools not found, building from source..."
|
||||||
cd ~
|
cd ~
|
||||||
if [ ! -d "libltc" ]; then
|
if [ ! -d "ltc-tools" ]; then
|
||||||
echo "Cloning libltc from GitHub..."
|
echo "Cloning ltc-tools from GitHub..."
|
||||||
git clone https://github.com/x42/libltc.git
|
git clone https://github.com/x42/ltc-tools.git
|
||||||
fi
|
fi
|
||||||
cd libltc
|
cd ltc-tools
|
||||||
mkdir -p build && cd build
|
mkdir -p build && cd build
|
||||||
echo "Running CMake configuration..."
|
echo "Running CMake configuration..."
|
||||||
cmake ..
|
cmake ..
|
||||||
echo "Compiling libltc..."
|
echo "Compiling ltc-tools..."
|
||||||
make
|
make
|
||||||
echo "Installing libltc binaries..."
|
echo "Installing ltc-tools binaries..."
|
||||||
sudo make install
|
sudo make install
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue