From dc43e764058ac3ced4b50e86a9874d3dea758613 Mon Sep 17 00:00:00 2001 From: Christian Haeusler <794584+corvus-ch@users.noreply.github.com> Date: Sat, 2 Oct 2021 18:26:30 +0200 Subject: [PATCH 1/3] Document how to build on MacOS --- readme.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 8a633c57..b990f7f3 100644 --- a/readme.md +++ b/readme.md @@ -50,7 +50,38 @@ There are currently no existing packages for other distributions, for these syst ## MacOS -TODO +You might get lucky by using the installer downloadable from [the Releases page](https://github.com/AlexandreRouma/SDRPlusPlus/releases). + +### Building it yourself + +This guide requires you to have Homebrew installed. Check out https://brew.sh/ on how to do so. + +Get yourself a copy of the source code. This can be done by downloading the +source package from [the Releases +page](https://github.com/AlexandreRouma/SDRPlusPlus/releases). Eextract it to a +location of your choice. Alternativley you can clone +https://github.com/AlexandreRouma/SDRPlusPlus.git using git. + +```sh +brew install \ + airspy \ + airspyhf \ + cmake \ + glew \ + glfw \ + hackrf \ + librtlsdr \ + portaudio \ + rt-audio \ + soapyrtlsdr \ + volk +mkdir build +cd build +cmake .. -DOPT_BUILD_PLUTOSDR_SOURCE=false +make -j$(sysctl -n hw.ncpu) +``` + +The above was tested on macOS Big Sur (11.5). ## BSD From cf3e024fb9cdf265c22eedd47c5bf7aa5c4608fe Mon Sep 17 00:00:00 2001 From: Christian Haeusler <794584+corvus-ch@users.noreply.github.com> Date: Sat, 9 Oct 2021 21:26:35 +0200 Subject: [PATCH 2/3] Use Port Audio instead of RtAudio --- readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b990f7f3..4805adbb 100644 --- a/readme.md +++ b/readme.md @@ -77,7 +77,10 @@ brew install \ volk mkdir build cd build -cmake .. -DOPT_BUILD_PLUTOSDR_SOURCE=false +cmake .. \ + -DOPT_BUILD_AUDIO_SINK=false \ + -DOPT_BUILD_PLUTOSDR_SOURCE=false \ + -DOPT_BUILD_PORTAUDIO_SINK=true make -j$(sysctl -n hw.ncpu) ``` From 4d7b46b1a89fd440b99a82201cc4bb5684bf9d14 Mon Sep 17 00:00:00 2001 From: Christian Haeusler <794584+corvus-ch@users.noreply.github.com> Date: Sat, 9 Oct 2021 22:18:02 +0200 Subject: [PATCH 3/3] Sync build example with github action workflow --- readme.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 4805adbb..18ee4860 100644 --- a/readme.md +++ b/readme.md @@ -67,25 +67,34 @@ brew install \ airspy \ airspyhf \ cmake \ + codec2 \ + fftw \ glew \ glfw \ hackrf \ + libbladerf \ librtlsdr \ portaudio \ - rt-audio \ + rtl-sdr \ soapyrtlsdr \ volk mkdir build cd build cmake .. \ - -DOPT_BUILD_AUDIO_SINK=false \ - -DOPT_BUILD_PLUTOSDR_SOURCE=false \ - -DOPT_BUILD_PORTAUDIO_SINK=true + -DOPT_BUILD_AUDIO_SINK=OFF \ + -DOPT_BUILD_BLADERF_SOURCE=OFF \ + -DOPT_BUILD_M17_DECODER=ON \ + -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON \ + -DOPT_BUILD_PLUTOSDR_SOURCE=OFF \ + -DOPT_BUILD_PORTAUDIO_SINK=ON \ + -DOPT_BUILD_SOAPY_SOURCE=OFF make -j$(sysctl -n hw.ncpu) ``` The above was tested on macOS Big Sur (11.5). +Check `jobs.build_macos` in the [build_all.yaml](https://github.com/AlexandreRouma/SDRPlusPlus/blob/master/.github/workflows/build_all.yml) workflow for the exact options used for building the package available in the [releases](https://github.com/AlexandreRouma/SDRPlusPlus/releases/tag/1.0.3) + ## BSD There are currently no BSD packages, refer to [Building on Linux / BSD](https://github.com/AlexandreRouma/SDRPlusPlus#building-on-linux--bsd) for instructions on building from source.