Updated Build OSX (markdown)

Charles J. Cliffe 2020-06-22 01:02:12 -04:00
parent 43871cb259
commit 4a9ab4cd86

@ -1,6 +1,6 @@
# OSX Build Instructions - (/w MacPorts):
### Prerequisites
## Prerequisites
You need to have XCode and macports / homebrew installed.
@ -8,17 +8,17 @@ You need to have XCode and macports / homebrew installed.
You can use MacPorts or Brew for this part.
##### MacPorts:
#### MacPorts:
```
ccliffe$ sudo port install liquid-dsp cmake
$ sudo port install liquid-dsp cmake
.. installing ..
```
##### Homebrew:
#### Homebrew:
```
ccliffe$ brew install automake cmake
$ brew install automake cmake
.. installing ..
ccliffe$ git clone https://github.com/jgaeddert/liquid-dsp.git
ccliffe$ cd liquid-dsp
$ git clone https://github.com/jgaeddert/liquid-dsp.git
$ cd liquid-dsp
liquid-dsp$ ./bootstrap.sh
liquid-dsp$ ./configure --enable-fftoverride CFLAGS="-O3"
.. configuring ..
@ -28,13 +28,13 @@ liquid-dsp$ sudo make install
.. installing ..
```
### Build wxWidgets
## Build wxWidgets
Substitute your own user paths where appropriate.
```
ccliffe$ mkdir ~/Dev
ccliffe$ cd ~/Dev
$ mkdir ~/Dev
$ cd ~/Dev
Dev$ mkdir wxWidgets-build
Dev$ cd wxWidgets-build
Dev$ wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.3/wxWidgets-3.1.3.tar.bz2
@ -47,9 +47,9 @@ wxWidgets-3.1.3$ make -j4 && make install
... building, installing ...
```
### Build SoapySDR
## Build SoapySDR
```
ccliffe$ cd ~/Dev
$ cd ~/Dev
Dev$ git clone https://github.com/pothosware/SoapySDR.git
Dev$ cd SoapySDR
SoapySDR$ mkdir build
@ -60,15 +60,15 @@ build$ sudo make install
build$ SoapySDRUtil --info
```
### Build CubicSDR
## Build CubicSDR
_Note: add ``` -DUSE_HAMLIB=1 ``` to cmake command line to include hamlib support._
```
ccliffe$ git clone https://github.com/cjcliffe/CubicSDR.git
$ git clone https://github.com/cjcliffe/CubicSDR.git
.. cloning ..
ccliffe$ cd CubicSDR
ccliffe$ mkdir build
ccliffe$ cd build
$ cd CubicSDR
$ mkdir build
$ cd build
build$ cmake ../ -DwxWidgets_CONFIG_EXECUTABLE=/Users/(YOUR_USERNAME)/Dev/wxWidgets-staticlib/bin/wx-config -DCMAKE_BUILD_TYPE=Release -DBUNDLE_APP=1 -DCPACK_BINARY_DRAGNDROP=1
... generating ...
-- Build files have been written to: .../CubicSDR/build
@ -79,13 +79,21 @@ build$ cpack
CubicSDR.app should now be built as x64/CubicSDR.app as well as a .DMG bundle (and possibly some other default bundles)
Example Support Modules:
---
## Example Support Modules:
SoapyRTLSDR (similar to other Soapy modules):
### SoapyRTLSDR (similar to other Soapy modules):
#### Dependencies via MacPorts:
```
ccliffe$ cd ~/Dev
Dev$ sudo port install rtl-sdr
$ sudo port install rtl-sdr
```
#### Dependencies via Homebrew:
```
$ brew install rtl-sdr
```
#### Build Module:
```
$ cd ~/Dev
Dev$ git clone https://github.com/pothosware/SoapyRTLSDR.git
Dev$ cd SoapyRTLSDR
SoapyRTLSDR$ mkdir build
@ -96,9 +104,10 @@ build$ sudo make install
build$ SoapySDRUtil --probe
```
SoapySDRPlay: (though usually latest SoapySDRPlay package will be available from www.sdrplay.com/mac.html)
### SoapySDRPlay:
Alternately latest SoapySDRPlay package may be available from www.sdrplay.com/mac.html
```
ccliffe$ cd ~/Dev
$ cd ~/Dev
Dev$ git clone https://github.com/pothosware/SoapySDRPlay.git
Dev$ cd SoapySDRPlay
SoapySDRPlay$ mkdir build