kopia lustrzana https://github.com/f4exb/sdrangel
Updated Compile in MacOS (markdown)
rodzic
dcfbe44f43
commit
b0d444b287
|
@ -14,12 +14,12 @@ In a terminal, run:
|
|||
sudo port install sdrangel
|
||||
sdrangel
|
||||
|
||||
# Build for Mac
|
||||
# Build for Mac
|
||||
|
||||
## Prerequisites
|
||||
|
||||
* Install XCode from AppStore (If building on Mojave, use Xcode 11.3.1 from Apple developer website, rather than App Store)
|
||||
* Install Qt 5.15.2 from https://www.qt.io/download (Installed in $HOME/Qt) (This includes cmake)
|
||||
* Install Qt 5.15.2 or Qt 6.6.0 (if Arm) from https://www.qt.io/download (Installed in $HOME/Qt) (This includes cmake)
|
||||
* Install git from https://git-scm.com/download/mac if not included with XCode
|
||||
* Install svn (Subversion) if not installed as part of Xcode (From brew, macports or build from source see below)
|
||||
* Install SDRPlay API from SDRplay.com (Catalina version SDRplay_RSP_API-MaxOSX-3.07.3.pkg) - Installs headers in to /usr/local
|
||||
|
@ -85,7 +85,7 @@ In a terminal, run:
|
|||
make all install
|
||||
```
|
||||
|
||||
* Set up PATH environment variable:
|
||||
* On x86: Set up PATH environment variable:
|
||||
|
||||
```apache
|
||||
export QT_DIR=$HOME/Qt/
|
||||
|
@ -96,6 +96,16 @@ In a terminal, run:
|
|||
export PATH=/opt/install/nasm-2.15.05:$PATH
|
||||
```
|
||||
|
||||
* On arm: Set up PATH environment variable:
|
||||
|
||||
```apache
|
||||
export QT_DIR=$HOME/Qt/
|
||||
export PATH=$QT_DIR/6.6.0/macOS/bin:$PATH
|
||||
export PATH=$QT_DIR/Tools/CMake/CMake.app/Contents/bin:$PATH
|
||||
export PATH=/opt/install/subversion-1.14.2/bin:$PATH
|
||||
export PATH=/opt/install/pkg-config-0.29.2/bin:$PATH
|
||||
```
|
||||
|
||||
## Download and build SDRangel
|
||||
|
||||
cd /opt/build
|
||||
|
@ -107,6 +117,8 @@ In a terminal, run:
|
|||
cmake -Wno-dev -DDEBUG_OUTPUT=ON -DENABLE_RTLSDR=ON -DENABLE_BLADERF=ON -DENABLE_AIRSPY=ON -DENABLE_AIRSPYHF=ON -DENABLE_FUNCUBE=ON -DENABLE_HACKRF=ON -DENABLE_IIO=OFF -DENABLE_LIMESUITE=ON -DENABLE_MIRISDR=ON -DENABLE_PERSEUS=ON -DENABLE_SDRPLAY=ON -DENABLE_SOAPYSDR=OFF -DENABLE_XTRX=ON -DENABLE_USRP=ON -DENABLE_EXTERNAL_LIBRARIES=ON -DBUNDLE=ON -DRX_SAMPLE_24BIT=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=TRUE -DCMAKE_PREFIX_PATH="$QT_DIR/5.15.2/clang_64" ..
|
||||
make package
|
||||
|
||||
On Arm, use -DCMAKE_PREFIX_PATH="$QT_DIR/6.6.0/macOS"
|
||||
|
||||
-DBUNDLE=ON is the option to create a .dmg
|
||||
|
||||
If there are SSL certificate errors fetching third party code, use -DCMAKE_TLS_VERIFY=FALSE
|
||||
|
|
Ładowanie…
Reference in New Issue