mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-09-30 17:40:35 +00:00
Updated build script.
This commit is contained in:
parent
c397990aaf
commit
3ad7a3f659
1 changed files with 22 additions and 2 deletions
|
@ -12,7 +12,7 @@ install_enterprise_linux() {
|
||||||
# Function to install packages on Debian-based systems (Debian, Ubuntu)
|
# Function to install packages on Debian-based systems (Debian, Ubuntu)
|
||||||
install_debian() {
|
install_debian() {
|
||||||
apt update -y # Update the system
|
apt update -y # Update the system
|
||||||
apt install -y build-essential cmake git libusb-1.0-0-dev libhdf5-dev
|
apt install -y build-essential cmake git libusb-1.0-0-dev libhdf5-dev g++ libpython3-dev python3-numpy swig
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to install packages on Alpine Linux
|
# Function to install packages on Alpine Linux
|
||||||
|
@ -36,6 +36,22 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Clone and build SoapySDR
|
||||||
|
rm -rf SoapySDR
|
||||||
|
git clone https://github.com/pothosware/SoapySDR.git
|
||||||
|
cd SoapySDR || exit
|
||||||
|
mkdir build
|
||||||
|
cd build || exit
|
||||||
|
cmake ..
|
||||||
|
make -j$(nproc)
|
||||||
|
make install -j$(nproc)
|
||||||
|
#On debian we need to run ldconfig
|
||||||
|
if [ -f "/etc/debian_version" ]; then
|
||||||
|
ldconfig
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd ../..
|
||||||
|
|
||||||
# Clone and build LimeSuite
|
# Clone and build LimeSuite
|
||||||
rm -rf LimeSuite
|
rm -rf LimeSuite
|
||||||
git clone https://github.com/myriadrf/LimeSuite.git
|
git clone https://github.com/myriadrf/LimeSuite.git
|
||||||
|
@ -43,4 +59,8 @@ cd LimeSuite/build || exit
|
||||||
cmake ../ -DENABLE_GUI=OFF
|
cmake ../ -DENABLE_GUI=OFF
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
ldconfig
|
|
||||||
|
# In debian we need ldconfig
|
||||||
|
if [ -f "/etc/debian_version" ]; then
|
||||||
|
ldconfig
|
||||||
|
fi
|
Loading…
Reference in a new issue