mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-06 02:37:32 +01:00
23 lines
576 B
Bash
23 lines
576 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
[ $(id -u) = 0 ] && echo "Please do not run this script as root" && exit 100
|
|
|
|
echo "Installing dependencies"
|
|
sudo apt update
|
|
sudo apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk1-dev libzstd-dev libsoapysdr-dev libairspyhf-dev libairspy-dev \
|
|
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
|
|
cmake .. -DOPT_BUILD_LIMESDR_SOURCE=ON
|
|
|
|
echo "Building"
|
|
make
|
|
|
|
echo "Installing"
|
|
sudo make install
|
|
|
|
echo "Done!"
|