How to build on macOS ARM?

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
chennes
Veteran
Posts: 3910
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: How to build on macOS ARM?

Post by chennes »

On a different note: I'm working on getting my Homebrew/Xcode build working again, to give app signing and App Store distribution another go round. I'm not there yet, but so far the big thing I had to fight with was getting a version of libTbb working: to do so I had to grab a copy of the Ruby file for Tbb@2020, copy it into freecad/freecad/Tbb@2020 and remove the line that marks it as deprecated. I also had to fight with CMake a bit to get it to find nglib, I ended up manually setting all of the NGLIB-related variables to the various things that SMESH needs.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
doia
Posts: 251
Joined: Sat May 29, 2021 5:47 am
Location: Düsseldorf

Re: How to build on macOS ARM?

Post by doia »

Has anyone of you looked into using CMakePresets.json files for a shared build setup? Maybe this is a viable way to reach a unified macOS build env.

See:
https://cmake.org/cmake/help/latest/man ... ets.7.html
https://binghanlin.github.io/2022/CMake ... nd-VSCode/
https://pspdfkit.com/blog/2021/cmake-pr ... -practice/
fpetzold
Posts: 20
Joined: Tue Mar 28, 2023 1:48 pm

Re: How to build on macOS ARM?

Post by fpetzold »

Has anybody succeeded in building a working FreeCAD for ARM that really uses the SpaceMouse? My build runs and I can see the settings for the SpaceMouse, but no events come through.
fpetzold
Posts: 20
Joined: Tue Mar 28, 2023 1:48 pm

Re: How to build on macOS ARM?

Post by fpetzold »

Has anybody succeeded in building a working FreeCAD for ARM that really uses the SpaceMouse? My build runs and I can see the settings for the SpaceMouse, but no events come through. If so, could you please post the steps to build and the generated configurations? Or does someone have a hint what may be wrong? My Mouse is also recognized in the log file...
oursland
Posts: 55
Joined: Sat Mar 11, 2023 9:33 pm

Re: How to build on macOS ARM?

Post by oursland »

I am convinced that this isn't working as expected on macOS at this time. I can confirm that the SpaceMouse works fine in other applications and the demos. I do not yet know the underlying problem, but I believe that it is not simply a build configuration issue.
fpetzold
Posts: 20
Joined: Tue Mar 28, 2023 1:48 pm

Re: How to build on macOS ARM?

Post by fpetzold »

If I understood correctly, @chennes wrote he had the SpaceMouse working on his M2 Mac (in this thread), so I figure it is possible somehow.
fpetzold
Posts: 20
Joined: Tue Mar 28, 2023 1:48 pm

Re: How to build on macOS ARM?

Post by fpetzold »

Now, I got it working by using the 3Dconnexion drivers 10.7.0. Link is here: https://download.3dconnexion.com/driver ... _r3411.dmg
oursland
Posts: 55
Joined: Sat Mar 11, 2023 9:33 pm

Re: How to build on macOS ARM?

Post by oursland »

I can confirm that it works with 10.7.0, but not with later versions of the driver.
fpetzold
Posts: 20
Joined: Tue Mar 28, 2023 1:48 pm

Re: How to build on macOS ARM?

Post by fpetzold »

So, for me it remains to be able to build a Mac app image again. How is this done?
JohnOCFII
Posts: 112
Joined: Sun Sep 20, 2020 5:46 pm
Location: Minnesota, USA

Re: How to build on macOS ARM?

Post by JohnOCFII »

fpetzold wrote: Tue Jun 06, 2023 5:49 am So, for me it remains to be able to build a Mac app image again. How is this done?
Not sure if your message is regarding a specifically packaged app, or just to get FreeCAD running on an arm Mac? For the later, I've had very good luck following the instructions that @oursland created here: https://github.com/oursland/FreeCAD-Build-Notes

To make a launch-able Mac app, I used Automator, as described in the section "Creating a macOS Application from a Conda Installation" from this set of instructions here: https://www.makewithtech.com/post/freec ... s-on-macos

John
Post Reply