This document will guide you through installing SDR applications on the platform built in the document: Installing drivers and support for the SDRplay RSP1A on a Raspberry Pi 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 libcap-dev libsndfile1-dev libspeechd-dev libavahi-compat-libdnssd-dev libzeroc-ice-dev speech-dispatcher sudo apt install libgrpc++-dev protobuf-compiler-grpc cd ~/ git clone https://github.com/mumble-voip/mumble.git cd mumble git submodule update --init --recursive mkdir build cd build cmake .. make -j 4 sudo make install sudo ldconfig
sudo apt-get install protobuf-compiler libopus-dev libspeexdsp1 libspeexdsp-dev 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 last release # git checkout master # To get the latest version with recent changes (instead of git checkout master): git checkout next sh ./build_debian.sh
build/qradiolink # or from anywhere /home/pi/qradiolink/build/qradiolink
sudo apt-get install freeglut3 freeglut3-dev libgtk2.0-dev libgtk-3-dev libtinyxml2.6.2v5
cd ~/ git clone https://github.com/jgaeddert/liquid-dsp cd liquid-dsp ./bootstrap.sh ./configure make -j 4 sudo make install sudo ldconfig
sudo apt-get install libasound-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
sudo apt install libgtk2.0-dev libgtk-3-dev
cd ~/ git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets.git cd wxWidgets/ mkdir -p ~/Develop/wxWidgets-staticlib ./autogen.sh ./configure --with-opengl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest --enable-unicode --enable-display --enable-propgrid --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/arm-linux-gnueabihf/8/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, note if you're on 64-bit linux it will be in x64/ cd x86/ ./CubicSDR # Install CubicSDR (and launcher in Applications menu) sudo make install sudo ldconfig
# portaudio is optional sudo apt install portaudio19-dev
export CXXFLAGS='-O2 -march=native -mtune=native' export CFLAGS='-O2 -march=native -mtune=native' 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 makefileRaspbian Run the program: ./sdrglut.x or ~/Desktop/SdrGlut/sdrglut.x
sudo apt-get install alsoft-conf sudo alsoft-confClick on the Backend tab. Disable everything except ALSA and PortAudio. Make sure that ALSA is listed first. The distortion should be gone the next time you run the program.