-
-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build For Apple Silicon (new Github runners) #2912
Comments
The build process for macos would need to work on Qt6 to do that I guess. And I'm lacking M1 hardware to be able to test the result 😁 |
I'm happy to help however I can. Unfortunately know nothing about QT to actually prepare a full PR, but if you want me to run a certain GitHub action or script, or test the result happy to do so. BTW QTOwnNotes do sometimes freeze for a few seconds on M1. I don't know if it's just a bug, or related to not being built for apple Silicon, but in the past I've seen weird behaviors like this happen on intel apps run on M1 |
Thank you! QOwnNotes/.github/workflows/build-release.yml Lines 331 to 395 in 952a368
Most of the actual process is abstracted to https://github.com/pbek/QOwnNotes/blob/main/build-systems/github/macos/create-dmg.sh. In case Qt6 is needed, this is where I experimentally build the macOS build with Qt6: QOwnNotes/.github/workflows/build-release-qt6.yml Lines 355 to 410 in 952a368
Any debug logs? |
Building should maybe even work with Qt5 and qmake says: https://doc-snapshots.qt.io/qt5-5.15/macos.html#architectures @gal064, so in theory you could try to fork the QOwnNotes repository and add QOwnNotes/.github/workflows/build-release.yml Line 377 in 952a368
If you enabled GitHub actions and push your changes to the |
Tried to run it but I'm getting: Also tried to comment out the x86 config in I'm not sure if that error is unrelated or making changes to the pri file created that error. I was pretty much guessing |
I guess Botan is able to compile for ARM, so it must be something with the settings... 🤔 |
Yep. I have no idea how to push forward here, so if you or anyone else want to pick this up would be greatly appreciated. Anyway I'll submit a bug on the small freezes when it happens next |
I tried just adding |
I wonder if any of the notes here on cross compilation might help/work? |
Looking at the logs, can the failure might be due to this:
|
I ran into the same issue but wasn't sure how to set it up |
Ah, good find! Hm... 🤔 |
I have a MBPro M3 Pro and was able to build for Apple Silicon. I did the fallowing: brew install qt-creator brew install qt brew install qt@5 open QT Creator then I think there was a 'configure project' button but it's not there now and I don't recall exactly, sorry. But that did it's thing for a while. I've never used QT Creator before so going by memory. then I built it and ran it and it worked, building an Apple Silicon version |
hmmm... ran into a hitch, I copied the .app to my Mac Mini M2 and it crashed on start until I installed qt@5 |
You could try to use the package manager nix to install QOwnNotes on the mac. 🤔 |
ok, not bad idea, but the nix version is 24.4.0 and current release is 24.4.2. But it is Apple Silicon which is nice. |
Will be surely in the build pipeline. QOwnNotes is at 24.4.2 in nix. |
I'd like to know if it worked in case you try 😉 |
Github runners for M1 are now available and I'm not familiar with QT, but it looks like you could even build an M1 version on intel silicon.
Would it be possible to have an M1 build?
The text was updated successfully, but these errors were encountered: