This is an old revision of the document!
Table of Contents
Compile Rocrail on Apple macOS
-
-
- Build Rocrail from source | Build Blog | Xcode
-
Compiler & Tools
From the macOS DVD install the optional Xcode package:
- Xcode; make, gcc, …
Or download/update it from:
wxWidgets
Leopard 10.5
cd wxWidgets mkdir macbuild cd macbuild ../configure --prefix=/usr/ --enable-unicode --enable-graphics_ctx make sudo make install
Lion 10.7
cd wxWidgets mkdir macbuild cd macbuild ../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk --with-macosx-version-min=10.6 --enable-graphics_ctx --enable-monolithic make sudo make install
Mountain Lion 10.8
cd wxWidgets mkdir macbuild cd macbuild ../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk --with-macosx-version-min=10.6 --enable-graphics_ctx --enable-monolithic --enable-compat28 make sudo make install
Mavericks 10.9 & Yosemite 10.10
The command line tools are part of the standard Xcode installation.
Xcode 6
Starting with Xcode 6 the SDK number is 10.9.
cd wxWidgets mkdir macbuild cd macbuild ../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk --with-macosx-version-min=10.6 --enable-graphics_ctx --enable-monolithic --enable-compat28 make sudo make install
Xcode 7
Starting with Xcode 7 the SDK number is 10.11.
cd wxWidgets mkdir macbuild cd macbuild ../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk --with-macosx-version-min=10.10 --enable-graphics_ctx --enable-monolithic --enable-compat28 make sudo make install
El Capitan 10.11
- Xcode: Version 7.1 (7B91b)
git clone https://github.com/wxWidgets/wxWidgets.git cd wxWidgets git checkout WX_3_0_BRANCH mkdir macbuild cd macbuild ../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk --with-macosx-version-min=10.11 --enable-graphics_ctx --enable-monolithic --enable-compat28 make -j 4 sudo make install
Sierra 10.12
- Xcode: Version 8.0
git clone https://github.com/wxWidgets/wxWidgets.git cd wxWidgets git checkout WX_3_0_BRANCH mkdir macbuild cd macbuild ../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk --with-macosx-version-min=10.12 --enable-graphics_ctx --enable-monolithic --enable-compat28 --disable-mediactrl make -j 4 sudo make install
If you already had a clone you must update the wxWidgets clone with:
git pull
Alternative configure for wxWidgets with Xcode 8
If the MacOSX10.12.sdk is not installed under Xcode 8, try this configuration:
../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk --with-macosx-version-min=10.12 --enable-graphics_ctx --enable-monolithic --enable-compat28 --disable-mediactrl
High Sierra 10.13
- Xcode: Version 9.1
git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets.git cd wxWidgets git checkout WX_3_0_BRANCH mkdir macbuild cd macbuild ../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk --with-macosx-version-min=10.13 --enable-graphics_ctx --enable-monolithic --enable-compat28 --disable-mediactrl make -j 4 sudo make install
If you already had a clone you must update the wxWidgets clone with:
git pull cd macbuild make clean
Mojave 10.14
- Xcode: Version 9.3
- The master is used instead of the 3.0 branch because of the Dark Theme support. The 3.2 branch will be uses as soon as it comes available.
git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets.git cd wxWidgets mkdir macbuild cd macbuild ../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk --with-macosx-version-min=10.14 --enable-graphics_ctx --enable-monolithic --enable-compat28 --disable-mediactrl make -j 4 sudo make install
If you already had a clone you must update the wxWidgets clone with:
git pull cd macbuild make clean
Get Rocrail sources
Described here: Build Rocrail from Source.
Build Rocrail
cd Rocrail make PLATFORM=MACOSX fromtar ./makemac.sh
This will build a DMG with Rocview and Rocrail inside. The DMG will end up in the folder package.
DMG build example
makemac.sh <dist>
Example: "makemac.sh mojave" will build
"rocrail-osx-XXXXX-mojave.dmg" where "XXXXX" is the Git revision number or "user" in case of offline build.
Trouble shooting
Mouse blocks
When using an USB-RS232 converter, and the incoming data stream takes the whole bandwidth, the mouse pointer will no longer react on user movements.
Apparently the device driver and or the OS X sub system cannot handle massive incoming data and blocks other parts. The hardware is OK because running Ubuntu on the same MAC does not suffer this problem.