Qt 6.5 static build for Mac does not include arm64 libraries
-
I'm building a static version of Qt 6.5.0 for Mac.
According to documentation I added to configure flag
-DCMAKE_OSX_ARCHITECTURES="x86_64h;arm64"But I'm trying to build a project for universal architecture with qmake flag
QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64"
I get unresolved symbols with error :/Qt/6.5.0-mac-static/lib/libQt6Widgets.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
What can be a problem ?
-
Hi and welcome to devnet,
Is this a typo here ? You have x86_64h in your configure options. -
Hi and welcome to devnet,
Is this a typo here ? You have x86_64h in your configure options.@SGaist
But the documentation says./configure -- -DCMAKE_OSX_ARCHITECTURES="x86_64h;arm64"
Be careful to specify the Intel architecture ("x86_64h") first, otherwise Qt may not enable all the x86 functionality.
-
@SGaist
But the documentation says./configure -- -DCMAKE_OSX_ARCHITECTURES="x86_64h;arm64"
Be careful to specify the Intel architecture ("x86_64h") first, otherwise Qt may not enable all the x86 functionality.