This document will guide you through installing SDR applications on the platform built in the document: Installing drivers for the SDRplay RSP1A and HackRF One on Raspberry Pi and Debian and depends on that installation.
This document is intended to be followed in the order it is written. If you want to skip installing one of applications, there may be some missing prerequisites.
sudo apt install mumble mumble-server
sudo apt-get install protobuf-compiler libopus-dev libspeexdsp1 libspeexdsp-dev libjpeg62-turbo libjpeg62-turbo-dev libconfig++9v5 libconfig++-dev libftdi1 libftdi-dev libsndfile1-dev libsndfile1 libjpeg-dev libprotoc-dev
cd ~/ git clone https://github.com/qradiolink/qradiolink cd qradiolink/ # To get the latest version with recent changes (instead of git checkout master): # git checkout next # To get the normal release git checkout master sh ./build_debian.sh
build/qradiolink # or from anywhere /home/pi/qradiolink/build/qradiolink
sudo apt-get install freeglut3 freeglut3-dev libgtk-3-dev libtinyxml2.6.2v5
cd ~/ git clone https://github.com/jgaeddert/liquid-dsp cd liquid-dsp ./bootstrap.sh CFLAGS="-march=native -O3" ./configure --enable-fftoverride make -j 4 sudo make install sudo ldconfig
sudo apt-get install libasound2-dev portaudio19-dev cd ~/ Download http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-5.1.0.tar.gz tar -zxvf rtaudio-5.1.0.tar.gz cd rtaudio-5.1.0 # ./configure --help # display all the available options ./configure --with-jack --with-alsa --with-pulse mkdir build cd build cmake ../ make -j 4 sudo make install sudo ldconfig cd tests # Try one of these to see if it will play something. Press CTRL-C to exit. ./playsaw 1 48000 ./playsaw 1 44100 ./playsaw 2 44100 # 2 different sawtooth waveforms, one in each speaker # If you don't hear a sound from any of these, it may have selected the headphone output. # Set speakers as default pacmd set-default-sink 0
cd ~/ git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets.git cd wxWidgets/ mkdir -p ~/Develop/wxWidgets-staticlib ./autogen.sh ./configure --with-opengl --disable-glcanvasegl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webkit --disable-webview --disable-webviewwebkit --prefix=`echo ~/Develop/wxWidgets-staticlib` CXXFLAGS="-std=c++0x" make -j4 sudo make install sudo ldconfig
cd ~/ git clone https://github.com/cjcliffe/CubicSDR.git cd CubicSDR mkdir build cd build # Works with HDMI, Headphones and Default cmake ../ -DOTHER_LIBRARIES:FILEPATH=/usr/lib/gcc/aarch64-linux-gnu/10/libatomic.so -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=~/Develop/wxWidgets-staticlib/bin/wx-config -DUSE_HAMLIB=1 -DUSE_AUDIO_PULSE=0 -DUSE_AUDIO_OSS=0 -DUSE_AUDIO_ALSA=1 make -j 4 # You can now run the build from the folder. cd x64/ ./CubicSDR # Install CubicSDR (and launcher in Applications menu) sudo make install sudo ldconfig
# portaudio is optional sudo apt install portaudio19-dev
# For a 32-bit operating system: export CXXFLAGS='-O2 -march=native -mtune=native' export CFLAGS='-O2 -march=native -mtune=native' # For a 64-bit operating system on a Raspberry Pi 4: export CXXFLAGS='-O3 -mtune=cortex-a72' export CFLAGS='-O3 -mtune=cortex-a72' cd ~/ git clone https://github.com/csete/gqrx.git gqrx cd gqrx mkdir build cd build cmake .. make -j 4 sudo make install sudo ldconfig
sudo mkdir /usr/local/include/rtaudio sudo cp /usr/local/include/RtAudio.h /usr/local/include/rtaudio/
sudo apt-get install libopenal-dev libalut0 libalut-dev
cd ~/Desktop git clone https://github.com/righthalfplane/SdrGlut.git cd SdrGlut make -f makefileUbunta Run the program: ./sdrglut.x or ~/Desktop/SdrGlut/sdrglut.x
sudo featherpad /etc/openal/alsoft.conf