Details
-
User Story
-
Resolution: Done
-
P2: Important
-
5.15, 6.x
Description
Tracking task for work required to make Qt work on Apple Silicon (arm64)
Please file any issues as standalone bugs and link them to this issue.
The work can be roughly grouped into three areas, by increasing priority:
- Making sure x86_64 builds of Qt work when running via Rosetta (
QTBUG-86405) - Making sure single architecture arm64 builds work and run fine
- Enabling universal builds of Qt, building and packaging x86_64 and arm64 together (
QTBUG-85447)
The last step is the one requiring the most work, as neither our qmake or CMake build systems are prepared for multi architecture builds. In the interim the user can build Qt twice, their app twice, and then lipo the application binaries into a universal app.
Note: The work for making Qt run well on macOS 11 (Big Sur) is tracked in QTBUG-85546
Building for Apple Silicon
Building on the DTK should work like a normal Qt for macOS build.
Cross compiling
With qmake
export DEVELOPER_DIR=/path/to/your/Xcode12-universal.app/Contents/Developer ./configure $CONFIGURE_OPTIONS -device-option QMAKE_APPLE_DEVICE_ARCHS=arm64
With CMake (Qt 6.0 only)
Build Qt for macOS natively first, so that you have the host tools buildt in for example /build/qt/6.0/qtbase. Then in /build/qt/6.0-arm/qtbase
export DEVELOPER_DIR=/path/to/your/Xcode12-universal.app/Contents/Developer cmake ~/dev/qt/6.0/qtbase -DQT_HOST_PATH=~/build/qt/6.0/qtbase -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_OSX_ARCHITECTURES=arm64
Attachments
Issue Links
- depends on
-
PYSIDE-802 Enable PySide/Shiboken cross compilation for different targets.
- Closed
-
PYSIDE-1033 Improve the shiboken build process
- Closed
- relates to
-
QTBUG-85528 QRegularExpression JIT compiler does not execute on Apple Silicon
- Closed
-
QTBUG-86429 macOS: unit 0 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable
- Closed
-
QTBUG-85281 AVX (and friends) on macOS Rosetta
- Closed
-
QTBUG-85546 Qt on macOS Big Sur (macOS 11 / 10.16)
- Closed
-
QTBUG-85447 Multi architecture (universal) builds
- Closed
-
QTBUG-85537 Enable QtWebEngine on macOS on ARM (moA)
- Closed
-
QTBUG-85600 macchangeqt/macdeployqt not built as host_build
- Reported
- mentioned in
-
Page Loading...
1.
|
Qt issues on Rosetta2 | Closed | Tor Arne Vestbø |