Add macOS build instructions

This commit is contained in:
Sam Burdick
2024-01-15 18:38:03 -08:00
parent 4b31fd9132
commit a1cb37a66a

View File

@ -89,6 +89,26 @@ You can build and install from ports:
# make install # make install
``` ```
## How to build the host software on macOS:
### Install dependencies
Homebrew: `brew install cmake libusb pkg-config`
Install FFTW from [this guide](https://www.fftw.org/install/mac.html)
### Build host software on Linux:
```sh
mkdir host/build
cd host/build
cmake ..
make
sudo make install
sudo update_dyld_shared_cache # equivalent to ldconfig in linux
```
## Credits
principal author: Michael Ossmann <mike@ossmann.com> principal author: Michael Ossmann <mike@ossmann.com>
http://greatscottgadgets.com/hackrf/ http://greatscottgadgets.com/hackrf/