2021-04-26 05:04:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd /root
|
|
|
|
|
2021-04-26 23:34:24 +02:00
|
|
|
# Install dependencies and tools
|
2021-04-26 05:04:31 +02:00
|
|
|
apt update
|
2021-07-03 13:35:42 +02:00
|
|
|
apt full-upgrade -y
|
2021-04-26 23:34:24 +02:00
|
|
|
|
|
|
|
# Install SDRPlay libraries
|
|
|
|
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.07.1.run
|
|
|
|
7z x ./SDRplay_RSP_API-Linux-3.07.1.run
|
|
|
|
7z x ./SDRplay_RSP_API-Linux-3.07.1
|
|
|
|
cp x86_64/libsdrplay_api.so.3.07 /usr/lib/libsdrplay_api.so
|
|
|
|
cp inc/* /usr/include/
|
2021-04-26 05:04:31 +02:00
|
|
|
|
|
|
|
cd SDRPlusPlus
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2021-06-28 02:22:51 +02:00
|
|
|
cmake .. -DOPT_BUILD_SDRPLAY_SOURCE=ON -DOPT_BUILD_BLADERF_SOURCE=OFF -DOPT_BUILD_LIMESDR_SOURCE=ON
|
2021-04-26 05:04:31 +02:00
|
|
|
make -j2
|
|
|
|
|
|
|
|
cd ..
|
2021-07-03 13:35:42 +02:00
|
|
|
sh make_debian_package.sh ./build
|