Compiling piHPSDR on Raspberry Pi running Raspberry Pi OS - g0orx/pihpsdr GitHub Wiki

It is recommended to use either 2GB, 4GB or 8 GB version of the Raspberry Pi 4 to run the Raspberry Pi OS.

Install pre-requisites

sudo apt install -y libfftw3-dev libgtk-3-dev libpulse-dev libpulse-mainloop-glib0 libasound2-dev libusb-1.0-0-dev libgpiod-dev libi2c-dev

Clone WDSP and pihpsdr from github

I would recommend creating a directory github to download the source into:

mkdir github
cd github
git clone https://github.com/g0orx/wdsp.git
git clone https://github.com/g0orx/pihpsdr.git

Compile and install WDSP

cd ~/github/wdsp
make clean
make -j4
sudo make install
cp libwdsp.so ~/github/pihpsdr/release/pihpsdr

Compile pihpsdr

cd ~/github/pihpsdr
make clean
make -j4
make release

Install pihpsdr

cd ~
tar xvf ~/github/pihpsdr/release/pihpsdr.tar
cd pihpsdr
sh ./install.sh

Running pihpsdr

The install script will add an icon to the desktop which can be double clicked on to start pihpsdr.

Make sure the only Interfaces enabled in Preferences->Raspberry Pi Configuratiion are SSH and also I2C if using Controller 2 (v1 or v2).

There is still a bug setting Pull up resistors on the GPIO lines using the Raspberry pi OS. To resolve this problem when using a Controller 1 or Controller 2 add the following to the end of the /boot/config.txt and then reboot the RPi:

[all]
# setup GPIO for piHPSDR Controller 2
gpio=4-13,16-27=ip,pu

If you get a dialog box asking what to do with the text file startup script, Click on the File Manager icon on the top of the screen, select Edit->Preferences and check the line that contains "Don't ask options on launch executable file".

The first time pihpsdr is run it will create the FFTW3 wisdom file, which will take a couple of minutes.

Compiling SoapySDR support

Edit the Makefile and uncomment the line containing:

#SOAPYSDR_INCLUDE=SOAPYSDR

change to:

SOAPYSDR_INCLUDE=SOAPYSDR

Install SoapySDR

sudo apt install libsoapysdr-dev

Compile and install piHPSDR

make clean
make -j4
sudo make install
⚠️ **GitHub.com Fallback** ⚠️