User Tools

Site Tools


cmac-en

This is an old revision of the document!


Compile Rocrail on Apple macOS

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/Catalina 10.14/10.15

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

If you already had a clone you must update the wxWidgets clone with:

git pull --recurse-submodules
cd macbuild
make clean


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.



Get Rocrail sources

Described here: Build Rocrail from Source.


Build Rocrail

cd Rocrail
make PLATFORM=MACOS fromtar
./makemac.sh
cmac-en.1605875312.txt.gz · Last modified: 2020/11/20 13:28 by rjversluis