Closed alber70g closed 1 year ago
This recently updated process allows me to build and run FreeCAD on my M1 arm Mac. My understanding is that this was going to be integrated into the automated build process for weekly builds, because as you can see from the date above -- that arm build is quite old.
https://github.com/oursland/FreeCAD-Build-Notes
I'm not sure what remains before the steps in that process can be integrated into the weekly automated build process.
Wow, excellent effort in https://github.com/oursland/FreeCAD-Build-Notes !
I'm not sure what remains before the steps in that process can be integrated into the weekly automated build process.
How do you suggest we ascertain that?
I happen to be working on github auto build recently. I managed to make it work to cross compile osx arm conda package on github intel machine. But to my understanding, we still need a real osx arm machine to make the bundle, which github does not offer at the moment. There is only commercial alternatives, which are not cheap. I am curious to see if anyone has any way around it. Or, maybe find some one to volunteer his personal osx arm machine as a self-hosted github runner.
I am curious to see if anyone has any way around it. Or, maybe find some one to volunteer his personal osx arm machine as a self-hosted github runner.
Sound something that the FPA should be involved in ?
How do you suggest we ascertain that?
@oursland may have some ideas as he got the build working and had some items merged by @chennes
I have an M1 that we can use as a self-hosted runner, someone just needs to tell me what I need to do to set such a thing up. I can just donate it to the FPA for this purpose, now that I have an M2 laptop I don't really need it anymore.
@realthunder looks like chennes is game :tada: TY @chennes !
Is it possible to add a new ARM64 build for MacOS to either weekly or 0.20.2 (https://github.com/FreeCAD/FreeCAD-Bundle/releases)?
can we emulate arm on a github action?
also what doe sit mean that it requires rosetta to launch? how did you determinate that?
We don't need any emulation, I just need to set up a self-hosted runner -- I have a lot of balls in the air right now, though, so it hasn't made my priority list.
can you run linux and windows vms on it too?
Yes, but I haven't tried compiling on Windows because Visual Studio doesn't support running on ARM (you are supposed to cross-compile from x86).
Yes, but I haven't tried compiling on Windows because Visual Studio doesn't support running on ARM (you are supposed to cross-compile from x86).
that is so stupid but I don't know what I was expecting from MS
We don't need any emulation, I just need to set up a self-hosted runner -- I have a lot of balls in the air right now, though, so it hasn't made my priority list.
I think there is a runner available in azure to get mac arm builds but it keeps failing, we could use emulation for the bundling process that happens here on github. similar situation with linux I think
I have uploaded a new arm bundle, can you try if it also asks for rosetta? https://github.com/FreeCAD/FreeCAD-Bundle/releases/download/weekly-builds/FreeCAD_weekly-builds-33447-2023-06-26-conda-macOS-arm-py310.dmg
I have uploaded a new arm bundle, can you try if it also asks for rosetta? https://github.com/FreeCAD/FreeCAD-Bundle/releases/download/weekly-builds/FreeCAD_weekly-builds-33447-2023-06-26-conda-macOS-arm-py310.dmg
Seems to work fine on my M1 MacBook Pro. Activity Viewer shows it at an Apple (arm) binary. I saw no request for Rosetta. FYI - It only shows the generic App icon.
OS: macOS 13.4.1
Word size of FreeCAD: 64-bit
Version: 0.21.0.33447 (Git)
Build type: Release
Branch: master
Hash: 090ae4571a589171dccb5dcabaf9d71e453ab2f3
Python 3.10.12, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.5, OCC 7.7.1
Locale: C/Default (C)
Good, probably the other bundle was at least partially cross compiled and that's why it asks for Rosetta, I had this version compiled using cirrus-ci's M1 runners and then bundled in chennes' M1 machine so it should be all native. I don't know about the icon, would have to look into how that's supposed to be specified but would love it if any of the Mac connoisseurs could lend me a hand there
I don't know about the icon, would have to look into how that's supposed to be specified but would love it if any of the Mac connoisseurs could lend me a hand there
Looking in the package contents, comparing it to a recent Intel Mac build, there are 3 icns
files that need to be in the Resources directory. These are currently (properly) referenced from the Info.plist file. I copied over the 3 files, but that alone didn't seem to make the icon show up, so we'll need some one with real Mac developer background to explain how to hook them up properly.
I just downloaded the latest weekly for MacOS ARM but it requires Rosetta to launch.
FreeCAD_weekly-builds-31483-2022-12-31-conda-macOS-arm-py311