mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-26 02:48:31 +01:00
22 lines
605 B
Bash
22 lines
605 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 libglew-dev libvolk2-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_BLADERF_SOURCE=ON -DOPT_BUILD_LIMESDR_SOURCE=ON
|
|
|
|
echo "Building"
|
|
make
|
|
|
|
echo "Installing"
|
|
sudo make install
|
|
|
|
echo "Done!" |