Merge pull request #402 from corvus-ch/mac_build

Document how to build on MacOS
pull/433/head
AlexandreRouma 2021-10-10 14:13:07 +02:00 zatwierdzone przez GitHub
commit d18a019abf
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 44 dodań i 1 usunięć

Wyświetl plik

@ -50,7 +50,50 @@ 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 \
codec2 \
fftw \
glew \
glfw \
hackrf \
libbladerf \
librtlsdr \
portaudio \
rtl-sdr \
soapyrtlsdr \
volk
mkdir build
cd build
cmake .. \
-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