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): # OSX Build Instructions - (/w MacPorts):
### Prerequisites ## Prerequisites
You need to have XCode and macports / homebrew installed. 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. 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 .. .. installing ..
``` ```
##### Homebrew: #### Homebrew:
``` ```
ccliffe$ brew install automake cmake $ brew install automake cmake
.. installing .. .. installing ..
ccliffe$ git clone https://github.com/jgaeddert/liquid-dsp.git $ git clone https://github.com/jgaeddert/liquid-dsp.git
ccliffe$ cd liquid-dsp $ cd liquid-dsp
liquid-dsp$ ./bootstrap.sh liquid-dsp$ ./bootstrap.sh
liquid-dsp$ ./configure --enable-fftoverride CFLAGS="-O3" liquid-dsp$ ./configure --enable-fftoverride CFLAGS="-O3"
.. configuring .. .. configuring ..
@ -28,13 +28,13 @@ liquid-dsp$ sudo make install
.. installing .. .. installing ..
``` ```
### Build wxWidgets ## Build wxWidgets
Substitute your own user paths where appropriate. Substitute your own user paths where appropriate.
``` ```
ccliffe$ mkdir ~/Dev $ mkdir ~/Dev
ccliffe$ cd ~/Dev $ cd ~/Dev
Dev$ mkdir wxWidgets-build Dev$ mkdir wxWidgets-build
Dev$ cd wxWidgets-build Dev$ cd wxWidgets-build
Dev$ wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.3/wxWidgets-3.1.3.tar.bz2 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 ... ... building, installing ...
``` ```
### Build SoapySDR ## Build SoapySDR
``` ```
ccliffe$ cd ~/Dev $ cd ~/Dev
Dev$ git clone https://github.com/pothosware/SoapySDR.git Dev$ git clone https://github.com/pothosware/SoapySDR.git
Dev$ cd SoapySDR Dev$ cd SoapySDR
SoapySDR$ mkdir build SoapySDR$ mkdir build
@ -60,15 +60,15 @@ build$ sudo make install
build$ SoapySDRUtil --info build$ SoapySDRUtil --info
``` ```
### Build CubicSDR ## Build CubicSDR
_Note: add ``` -DUSE_HAMLIB=1 ``` to cmake command line to include hamlib support._ _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 .. .. cloning ..
ccliffe$ cd CubicSDR $ cd CubicSDR
ccliffe$ mkdir build $ mkdir build
ccliffe$ cd 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 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 ... ... generating ...
-- Build files have been written to: .../CubicSDR/build -- 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) 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 $ sudo port install rtl-sdr
Dev$ 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$ git clone https://github.com/pothosware/SoapyRTLSDR.git
Dev$ cd SoapyRTLSDR Dev$ cd SoapyRTLSDR
SoapyRTLSDR$ mkdir build SoapyRTLSDR$ mkdir build
@ -96,9 +104,10 @@ build$ sudo make install
build$ SoapySDRUtil --probe 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$ git clone https://github.com/pothosware/SoapySDRPlay.git
Dev$ cd SoapySDRPlay Dev$ cd SoapySDRPlay
SoapySDRPlay$ mkdir build SoapySDRPlay$ mkdir build