qt-creatorĬmake -DCMAKE_BUILD_TYPE=Release -G Ninja "-DCMAKE_PREFIX_PATH=./qt5-5.15-macOS-release/qtbase/" -DPYTHON_EXECUTABLE=/opt/homebrew/bin/python3. Git clone git://code.qt.io/qt-creator/qt-creator.gitĬmake -DCMAKE_BUILD_TYPE=Release -G Ninja "-DCMAKE_PREFIX_PATH=./qt5-5.15-macOS-release/qtbase/ /opt/homebrew/opt/llvm" -DPYTHON_EXECUTABLE=/opt/homebrew/bin/python3. Also notice the skipping of qt3d and qtwebengine, do not mistake this for mercy, they in fact do not build with macOS ARM64 currently. This is a pretty common pattern we use for Qt development (its also one of the nice things that the -developer-build configure flag does, but we don't do that here because we want a release build). By setting the -prefix value to "./qtbase" you essentially say that you are installing to the place where it already was. When that completes, there is no need to run make install.
#Qt mac install issues download#
If that is correct, then all the rituals have been performed, and you can move on to building Qt which again will take quite awhile, but maybe not as long as to download Qt because the M1 Macs are crazy fast to build stuff. This should configure Qt without errors and you should confirm that it says this at the top of the configuration output:īuild type: macx-clang (arm64, CPU features: neon crc32) qtbase -nomake examples -nomake tests QMAKE_APPLE_DEVICE_ARCHS=arm64 -opensource -confirm-license -skip qt3d -skip qtwebengine Create a build folder outside of your Qt source directory. Ok now that that is done we can build things. But since people seem to miss these modules in Qt 6, why not take a moment(or hour) to reflect on the largess of Qt 5 by downloading everything? It's possible to skip downloading some modules, and Qt Creator certainly doesn't use all of them. WebEngine takes like half the time because it contains Chromium which is larger than Qt. This step takes forever because it needs to pull down every module, and for Qt 5.15 there are ALOT.
#Qt mac install issues code#
This will basically give you the last bit of opensource code before the 5.15 repo went private. We need some unreleased code so you need to get it using git. Building Qt 5.15.x (unreleased/opensource)įirst get all the source code for Qt 5.15.