aqtinstall: Error when use qmake with Qt 6
Describe the bug Hi,
Im trying use qmake with Qt 6 on Windows, but i always get error:
https://github.com/paulocoutinhox/prprojector/actions/runs/6080974346/job/16495785923#step:9:239
Can you help me understand?
To Reproduce
git clone https://github.com/paulocoutinhox/prprojector.git
cd prprojector
python3 -m pip install -r requirements.txt
python3 make.py run build-win-x64
Expected behavior
Run qmake without problems.
Desktop (please complete the following information):
- OS: windows
INFO : aqtinstall(aqt) v3.1.7 on Python 3.9.6 [CPython Clang 14.0.3 (clang-1403.0.22.14.1)]
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 15 (10 by maintainers)
Ok, I got tired of waiting for a response to see if my PR works for your project, so I answered it myself. The short answer is, yes, it will work for your project. However, you need to make some changes to the project to get your CI builds to work. Please see CI run: https://github.com/ddalcino/prprojector/actions/runs/6132364215/job/16643166565
Necessary changes:
arch: amd64_arm64instead ofarm64(see docs)--autodesktopflag toaqt install-qtcommandwindeployqt; it does not exist atC:\Qt\6.5.2\msvc2019_arm64\bin\windeployqt.Optional change (I don’t know if this is necessary, but I don’t care because it cuts build time in half):
debuginfomodulePlease see https://github.com/paulocoutinhox/prprojector/compare/master...ddalcino:prprojector:master for a working example of these changes.
My branch does not do anything about
windeployqt, and in fact my CI build fails becausewindeployqtis missing, but that’s beyond the scope of this issue. There will be a copy installed atC:\Qt\6.5.2\msvc2019_64\bin\windeployqt, but I don’t know if that will work for arm64 builds. If you need an arm64 version ofwindeployqt, you may need to contact the Qt maintainers.aqtinstallcan only deliver binaries hosted at download.qt.io, and it doesn’t appear to be present there.Do you think we could change the title of this issue to something more like ‘errors installing Qt 6 with arch=win64_msvc2019_arm64’, or similar? That’s the real bug here, and making the title more specific will make this problem much easier to track in the future.
Have a glance at the code and log:
Hmm, you were not using
python3 make.py run build-win-x64.To see what error happens, I think you may have to replace
check_callwithcheck_outputto get the output of qmake. An “exit status 1” is not helpful.