User Tools

Site Tools


Compile Rocrail on Apple macOS

Compiler & Tools

Xcode must be installed, and can be downloaded from the App Store.


Mojave/Catalina 10.14/10.15

  • 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
cd wxWidgets
git checkout v3.1.6
mkdir macbuild
cd macbuild
../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/ --with-macosx-version-min=10.14 --enable-graphics_ctx --enable-monolithic --enable-compat28 --disable-mediactrl --disable-shared
make -j 4
sudo make install

BigSur 11 / Monterey 12

Intel & M1 CPU

git clone --recurse-submodules
cd wxWidgets
git checkout v3.1.6
mkdir macbuild
cd macbuild
../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/ --with-macosx-version-min=11.00 --enable-graphics_ctx --enable-monolithic --enable-compat28 --disable-mediactrl --disable-shared --enable-debug=no
make -j8
sudo make install

Update Source

cd wxWidgets
git checkout master
git pull
git submodule update
git checkout v3.1.6

Ventura 13


See Monterey.

Command Line Tools

If this error occurs:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

open the Xcode Preferences → Locations Tab select the version:


The latest wxFormBuilder Intel release, will crash under Rosetta 2.
wxFormBuilder can be build locally after wxWidgets has been build on the Mac.
The build does NOT need any HomeBrew Utilities as stated in the of the sources.

The following commands will build the App:

git clone --recursive --depth=1
cd wxFormBuilder
export CPLUS_INCLUDE_PATH=/usr/local/include/wx-3.1
./ --disable-shared --disable-mediactrl
cd build/3.1/gmake
make -j8 config=release

Ignore the errors at the end of the build process.

The App is found in:


Depending on the underlying CPU it will be X86_64 or ARM64.

Get Rocrail sources

Described here: Build Rocrail from Source.

Build Rocrail

cd Rocrail
./ bigsur-M1


To be able to compile the Rocrail sources the CC_FLAGS in all makefile's must be extended with -std=c99:

# --- compile flags ---
develop/cmac-en.txt · Last modified: 2022/11/09 09:07 by rjversluis