2024-05-24 01:38:24 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd /root
|
|
|
|
|
|
|
|
# Install dependencies and tools
|
|
|
|
apt update
|
|
|
|
apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk-dev libzstd-dev libairspyhf-dev libairspy-dev \
|
|
|
|
libiio-dev libad9361-dev librtaudio-dev libhackrf-dev librtlsdr-dev libbladerf-dev liblimesuite-dev p7zip-full wget portaudio19-dev \
|
2024-07-16 20:43:53 +02:00
|
|
|
libcodec2-dev autoconf libtool xxd libspdlog-dev
|
2024-05-24 01:38:24 +02:00
|
|
|
|
|
|
|
# Install SDRPlay libraries
|
2024-05-26 22:57:47 +02:00
|
|
|
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.15.1.run
|
|
|
|
7z x ./SDRplay_RSP_API-Linux-3.15.1.run
|
|
|
|
7z x ./SDRplay_RSP_API-Linux-3.15.1
|
|
|
|
cp x86_64/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
|
2024-05-24 01:38:24 +02:00
|
|
|
cp inc/* /usr/include/
|
|
|
|
|
|
|
|
# Install libperseus
|
|
|
|
git clone https://github.com/Microtelecom/libperseus-sdr
|
|
|
|
cd libperseus-sdr
|
|
|
|
autoreconf -i
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
ldconfig
|
|
|
|
cd ..
|
|
|
|
|
2024-07-16 20:43:53 +02:00
|
|
|
# Install librfnm
|
|
|
|
git clone https://github.com/AlexandreRouma/librfnm
|
|
|
|
cd librfnm
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
make -j2
|
|
|
|
make install
|
2024-07-16 20:58:25 +02:00
|
|
|
cd ../../
|
2024-07-16 20:43:53 +02:00
|
|
|
|
2024-05-24 01:38:24 +02:00
|
|
|
cd SDRPlusPlus
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2024-07-16 20:43:53 +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 -DOPT_BUILD_RFNM_SOURCE=ON
|
2024-05-24 01:38:24 +02:00
|
|
|
make VERBOSE=1 -j2
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
sh make_debian_package.sh ./build 'libfftw3-dev, libglfw3-dev, libvolk-dev, librtaudio-dev, libzstd-dev'
|