mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-10-02 02:10:34 +00:00
Compare commits
No commits in common. "3ad7a3f659466d15d15c5156e8e43872d1d0321b" and "a302e5080b6b9d7ffa67fd11f642f88e8a814ab0" have entirely different histories.
3ad7a3f659
...
a302e5080b
1 changed files with 6 additions and 56 deletions
|
@ -1,66 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -ex # will exit on any error and print all commands
|
set -ex # will exit on any error and print all commands
|
||||||
|
|
||||||
# Function to install packages on Enterprise Linux (CentOS, RHEL)
|
yum install -y epel-release
|
||||||
install_enterprise_linux() {
|
yum update -y # Update the system
|
||||||
yum install -y epel-release
|
yum groupinstall -y "Development Tools"
|
||||||
yum update -y # Update the system
|
yum install -y cmake3 git libusb-devel hdf5-devel
|
||||||
yum groupinstall -y "Development Tools"
|
|
||||||
yum install -y cmake git libusb-devel hdf5-devel
|
|
||||||
}
|
|
||||||
|
|
||||||
# Function to install packages on Debian-based systems (Debian, Ubuntu)
|
|
||||||
install_debian() {
|
|
||||||
apt update -y # Update the system
|
|
||||||
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
|
|
||||||
install_alpine() {
|
|
||||||
apk update # Update the system
|
|
||||||
apk add --no-cache build-base cmake git libusb-dev hdf5-dev
|
|
||||||
}
|
|
||||||
|
|
||||||
# Determine the Linux distribution and install packages accordingly
|
|
||||||
if [ -f "/etc/redhat-release" ]; then
|
|
||||||
# Enterprise Linux (CentOS, RHEL)
|
|
||||||
install_enterprise_linux
|
|
||||||
elif [ -f "/etc/debian_version" ]; then
|
|
||||||
# Debian-based distribution (Debian, Ubuntu)
|
|
||||||
install_debian
|
|
||||||
elif grep -qi alpine /etc/os-release; then
|
|
||||||
# Alpine Linux
|
|
||||||
install_alpine
|
|
||||||
else
|
|
||||||
echo "Unsupported distribution"
|
|
||||||
exit 1
|
|
||||||
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
|
||||||
cd LimeSuite/build || exit
|
cd LimeSuite/build || exit
|
||||||
cmake ../ -DENABLE_GUI=OFF
|
cmake3 ../ -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