Repository navigation
Add native macOS arm64 build script and docs - #457
MoustacheOff wants to merge 3 commits into
Conversation
2bcb20a to
5b9a56f
Compare
lk-da-miller
left a comment
There was a problem hiding this comment.
Built as described on my MacBook Pro with M4 and macOS Golden Gate 27.2. Build succeeds but crashes upon launch.
scripts/build-macos-arm64 builds C! and CAMotics natively for Apple Silicon with Homebrew Qt5 and packages a signed CAMotics.app. TPL is disabled because Homebrew's V8 is newer than the C! V8 bindings.
macdeployqt does not copy indirect @rpath dependencies, so libbrotlicommon was missing from the bundle and the Qt cocoa platform plugin failed to load. The build script now copies any unresolved @rpath dylibs into Frameworks. config/qt5 no longer imports six (Python 3 only), which current Homebrew scons does not ship.
6cd5e85 to
1181df4
Compare
|
Thanks @lk-da-miller, I reproduced the crash on macOS 27.2 / M4 and pushed a fix. Cause: Fix: the script now copies any unresolved After a clean rebuild with |
|
Thanks @MoustacheOff !! It works! Very helpful since I use Camotics quite a bit. Thank you so much! |
What
scripts/build-macos-arm64: builds C! and CAMotics natively for Apple Silicon using Homebrew (scons,qt@5), then assemblesdist/CAMotics.app(Qt bundled viaosx/deployqt, ad-hoc signed)..gitignore: ignore/dist/and/cbang/.Why
There was no documented way to build on current macOS/M-series. Tested on macOS 27 / M4 from a clean clone: all binaries are arm64, the app launches, and
camsimsimulatesexamples/bear(406k triangles in ~2.6s).Notes for reviewers
with_tpl=0): Homebrew's V8 15.x needs C++20 and its API no longer matches the C! V8 bindings.Related to #456 (asks for an Apple Silicon build; this documents building one from source, it does not provide an official release).