User Tools

Site Tools


develop:cmac-en

macOS

Compiler & Tools

Xcode command line utilities must be installed.


wxWidgets

Get source

git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets.git
cd wxWidgets
git checkout v3.2.4
mkdir macbuild
cd macbuild

Update

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


Configure wxWidgets Target

Mojave/Catalina 10.14/10.15

../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 --enable-debug=no

BigSur 11 / Monterey 12 / Ventura 13 / Sonoma 14

Intel & M1/M2/M3 CPU

../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 --enable-debug=no


Build

make -j8
sudo make install


Ventura 13

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:
ASCII���Screenshot


Build Rocrail

git clone <git repository>
cd Rocrail
make -j8 PLATFORM=MACOS ORIGIN=LOCAL fromtar
./makemac.sh ventura-M1


Leopard

:!: No longer supported; Missing up to date compiler.
To be able to compile the Rocrail sources the make call must be extended with -std=c99.
The easiest way is to misuse the DEBUG parameter:

make -j4 DEBUG=-std=c99 PLATFORM=MACOS ORIGIN=LOCAL fromtar


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 -j8 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.

develop/cmac-en.txt · Last modified: 2024/07/19 08:02 by rjversluis