More bionic compatibility

This commit is contained in:
Ryzerth 2021-04-26 16:55:55 +02:00
parent ed29f9dcc5
commit 27697bb638
2 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,12 @@
#include <config.h> #include <config.h>
#include <spdlog/spdlog.h> #include <spdlog/spdlog.h>
#include <fstream> #include <fstream>
#ifdef USE_EXPERIMENTAL_FS
#include <experimental/filesystem>
#else
#include <filesystem> #include <filesystem>
#endif
ConfigManager::ConfigManager() { ConfigManager::ConfigManager() {

View File

@ -2,12 +2,15 @@
set -e set -e
cd /root cd /root
apt update apt update
apt install -y dpkg-dev make gcc-8 g++-8 cmake git libfftw3-dev libglfw3-dev libglew-dev libvolk1-dev libsoapysdr-dev libairspyhf-dev libairspy-dev libiio-dev libad9361-dev librtaudio-dev libhackrf-dev librtlsdr-dev apt install -y software-properties-common
add-apt-repository -y ppa:ubuntu-toolchain-r/test
apt update
apt install -y dpkg-dev make gcc-10 g++-10 cmake git libfftw3-dev libglfw3-dev libglew-dev libvolk1-dev libsoapysdr-dev libairspyhf-dev libairspy-dev libiio-dev libad9361-dev librtaudio-dev libhackrf-dev librtlsdr-dev
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 1000 --slave /usr/bin/g++ g++ /usr/bin/g++-10
git clone https://github.com/AlexandreRouma/SDRPlusPlus git clone https://github.com/AlexandreRouma/SDRPlusPlus
@ -15,7 +18,7 @@ cd SDRPlusPlus
mkdir build mkdir build
cd build cd build
cmake .. cmake ..
make CXX_FLAGS=-DUSE_OLD_VOLK_ADD=1 -j2 make CXX_FLAGS='-DUSE_OLD_VOLK_ADD=1 -DUSE_EXPERIMENTAL_FS=1' -j2
cd .. cd ..
sh make_debian_package.sh ./build sh make_debian_package.sh ./build