Skip to content

Compiling piHPSDR on an Apple Mac

John Melton edited this page Mar 5, 2021 · 2 revisions

Install System Requirements

(Note: this uses homebrew to install the required packages)

xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install portaudio
brew install fftw
brew install gtk+3
brew install pkg-config
brew install git

Fetch WDSP and piHPSDR source code from github

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

mkdir github
cd github

Download the source:

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

Compile WDSP

cd ~/github/wdsp
make clean
make -j4
sudo make install

Copy libwdsp.so to the pihpsdr install directory:

cp libwdsp.so ~/github/pihpsdr/release/pihpsdr

Edit the Makefile to comment out the GPIO option.

cd ~/github/pihpsdr

Using your favourite text editor load Makefile.

Find the line with:

GPIO_INCLUDE=GPIO

Comment out the line:

#GPIO_INCLUDE=GPIO

Save the save.

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