2021-09-12 19:12:23 +02:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
[ $(id -u) = 0 ] && echo "Please do not run this script as root" && exit 100
|
|
|
|
|
|
|
|
echo "Installing dependencies"
|
|
|
|
sudo apt update
|
2022-01-26 20:51:59 +01:00
|
|
|
sudo apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk1-dev libzstd-dev libsoapysdr-dev libairspyhf-dev libairspy-dev \
|
2021-09-12 19:12:23 +02:00
|
|
|
libiio-dev libad9361-dev librtaudio-dev libhackrf-dev librtlsdr-dev libbladerf-dev liblimesuite-dev p7zip-full wget
|
|
|
|
|
|
|
|
echo "Preparing build"
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
2021-09-19 15:10:08 +02:00
|
|
|
cmake .. -DOPT_BUILD_LIMESDR_SOURCE=ON
|
2021-09-12 19:12:23 +02:00
|
|
|
|
|
|
|
echo "Building"
|
|
|
|
make
|
|
|
|
|
|
|
|
echo "Installing"
|
|
|
|
sudo make install
|
|
|
|
|
2021-09-19 12:18:39 +02:00
|
|
|
echo "Done!"
|