Create a native arm64 app
-
On a Mac laptop with MacOS 13.2.1 with chip M1 I've installed Qt 5.15.2, which I use through Qt creator.
I would like to create a native Arm4 app.
It seems that the installed Qt libraries are all x86_64, and therefore the created apps are run emulation, with efficiency loss.
I tried to create a new kit using as compiler an apple Clang (arm64), but Qt creator complains that is is impossible to use this compiler with my Qt libraries, and says:
The complier "Apple Clang (arm64)" (arm-darwin-generic-mach_o-64bit) cannot produce code for the Qt version "Qt 5.15.2 clang 64 bit" (x86-darwin-generic-mach_o-64 bit).
So, the issue is clearly that the Qt libraries are compiled for intel. I tried to see whether, through the maintenance tool, I could download arm64 libraries, but I saw that just "MacOS" libraries are available, without possibility to choose the CPU architecture.
What can I do to solve this and be able to create native arm64 apps?
Thank you all.
-
Hi,
For the Qt 5 series, you will have to build Qt yourself. For Qt 6, the recent versions are universal architecture and contains both architectures.
-
Hi,
For the Qt 5 series, you will have to build Qt yourself. For Qt 6, the recent versions are universal architecture and contains both architectures.
@SGaist aha, that's the reason.
I tried Qt 6 libraries and found arm architecture, very good!
Thanks a lot -
S SGaist has marked this topic as solved on