User Tools

Site Tools


cmac-en

Compile Rocrail on Apple macOS

Compiler & Tools

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


wxWidgets


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 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 --disable-shared
make -j 4
sudo make install


Big Sur 11.0.1

Intel CPU

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=11.00 --enable-graphics_ctx --enable-monolithic --enable-compat28 --disable-mediactrl --disable-shared
make -j 4
sudo make install

M1 CPU

The same commands are used to build natively on the M1 CPU.


wxFormBuilder


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 README.md of the sources.

The following commands will build the App:

git clone --recursive --depth=1 https://github.com/wxFormBuilder/wxFormBuilder
cd wxFormBuilder
export CPLUS_INCLUDE_PATH=/usr/local/include/wx-3.1
./create_build_files4.sh --disable-shared --disable-mediactrl
cd build/3.1/gmake
make config=release

Ignore the errors at the end of the build process.

The App is found in:

wxFormBuilder/output/wxFormBuilder.app

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
make PLATFORM=MACOS fromtar
./makemac.sh
cmac-en.txt · Last modified: 2020/11/28 12:19 by rjversluis