2021-04-26 17:41:03 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd /root
|
|
|
|
|
2021-04-26 23:34:24 +02:00
|
|
|
# Install dependencies and tools
|
2021-04-26 17:41:03 +02:00
|
|
|
apt update
|
2023-09-04 22:19:51 +02:00
|
|
|
apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk-dev libzstd-dev libsoapysdr-dev libairspyhf-dev libairspy-dev \
|
2021-10-02 17:01:23 +02:00
|
|
|
libiio-dev libad9361-dev librtaudio-dev libhackrf-dev librtlsdr-dev libbladerf-dev liblimesuite-dev p7zip-full wget portaudio19-dev \
|
2023-05-24 02:55:37 +02:00
|
|
|
libcodec2-dev autoconf libtool xxd
|
2021-04-26 23:34:24 +02:00
|
|
|
|
|
|
|
# Install SDRPlay libraries
|
2024-03-20 01:38:36 +01:00
|
|
|
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.14.0.run
|
|
|
|
7z x ./SDRplay_RSP_API-Linux-3.14.0.run
|
|
|
|
7z x ./SDRplay_RSP_API-Linux-3.14.0
|
2024-03-20 01:58:16 +01:00
|
|
|
cp x86_64/libsdrplay_api.so.3.14 /usr/lib/libsdrplay_api.so
|
2021-04-26 23:34:24 +02:00
|
|
|
cp inc/* /usr/include/
|
2021-04-26 17:41:03 +02:00
|
|
|
|
2023-05-24 02:32:27 +02:00
|
|
|
# Install libperseus
|
|
|
|
git clone https://github.com/Microtelecom/libperseus-sdr
|
|
|
|
cd libperseus-sdr
|
2023-05-24 02:49:22 +02:00
|
|
|
autoreconf -i
|
2023-05-24 02:32:27 +02:00
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
ldconfig
|
|
|
|
cd ..
|
|
|
|
|
2021-04-26 17:41:03 +02:00
|
|
|
cd SDRPlusPlus
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2023-05-24 02:32:27 +02:00
|
|
|
cmake .. -DOPT_BUILD_BLADERF_SOURCE=ON -DOPT_BUILD_LIMESDR_SOURCE=ON -DOPT_BUILD_SDRPLAY_SOURCE=ON -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON -DOPT_BUILD_M17_DECODER=ON -DOPT_BUILD_PERSEUS_SOURCE=ON
|
2021-10-04 03:31:13 +02:00
|
|
|
make VERBOSE=1 -j2
|
2021-04-26 17:41:03 +02:00
|
|
|
|
|
|
|
cd ..
|
2023-09-04 22:19:51 +02:00
|
|
|
sh make_debian_package.sh ./build 'libfftw3-dev, libglfw3-dev, libvolk-dev, librtaudio-dev, libzstd-dev'
|