miurahr / aqtinstall

aqt: Another (unofficial) Qt CLI Installer on multi-platforms
https://aqtinstall.readthedocs.io/en/latest/
MIT License
921 stars 86 forks source link

[Bug]: Install fails for win64_llvm_mingw arch #825

Open pcolby opened 6 days ago

pcolby commented 6 days ago

Bug description

For Qt 6.7 (and 6.8) it should be possible to install the win64_llvm_mingw arch, however, it appears that aqt expects to find the qconfig.pri in an incorrect location eg:

ERROR   : Updater caused an IO error: [Errno 2] No such file or directory: '/home/paul/tmp/aqt/6.7.3/llvm_mingw/mkspecs/qconfig.pri'

But the qconfig.pri file is under a llvm-mingw_64 directory, not llvm_mingw.

Expected behavior

This should work, without error:

aqt install-qt windows desktop 6.7.3 win64_llvm_mingw
aqt install-qt windows desktop 6.8.0 win64_llvm_mingw

Thanks!

aqt and python version

v3.1.17 on Python 3.10.4 [CPython GCC 13.2.0]

Operating System

Linux/Unix, Windows

Relevant log output

paul@jafar:~/tmp/aqt$ aqt install-qt windows desktop 6.7.3 win64_llvm_mingw
INFO    : aqtinstall(aqt) v3.1.17 on Python 3.10.4 [CPython GCC 13.2.0]
WARNING : Specified Qt version "6.7.3" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.
INFO    : Downloading qtdeclarative...
INFO    : Downloading qtsvg...
INFO    : Downloading qtbase...
INFO    : Downloading qttools...
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Finished installation of qtsvg-Windows-Windows_11_23H2-Clang-Windows-Windows_11_23H2-X86_64.7z in 3.12440094
INFO    : Finished installation of qttools-Windows-Windows_11_23H2-Clang-Windows-Windows_11_23H2-X86_64.7z in 4.44455947
INFO    : Downloading qttranslations...
INFO    : Downloading llvm...
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Finished installation of qttranslations-Windows-Windows_11_23H2-Clang-Windows-Windows_11_23H2-X86_64.7z in 2.88042200
INFO    : Finished installation of qtbase-Windows-Windows_11_23H2-Clang-Windows-Windows_11_23H2-X86_64.7z in 6.98255987
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Finished installation of llvm-mingw-20231128-ucrt-x86_64-runtime.7z in 2.73452832
INFO    : Downloading d3dcompiler_47...
INFO    : Downloading opengl32sw...
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Finished installation of d3dcompiler_47-x64.7z in 2.80330106
INFO    : Finished installation of qtdeclarative-Windows-Windows_11_23H2-Clang-Windows-Windows_11_23H2-X86_64.7z in 8.91979386
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Finished installation of opengl32sw-64-mesa_11_2_2-signed_sha256.7z in 3.12606544
ERROR   : Updater caused an IO error: [Errno 2] No such file or directory: '/home/paul/tmp/aqt/6.7.3/llvm_mingw/mkspecs/qconfig.pri'
paul@jafar:~/tmp/aqt$ aqt install-qt windows desktop 6.8.0 win64_llvm_mingw
INFO    : aqtinstall(aqt) v3.1.17 on Python 3.10.4 [CPython GCC 13.2.0]
WARNING : Specified Qt version "6.8.0" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.
INFO    : Downloading qtbase...
INFO    : Downloading qttools...
INFO    : Downloading qtdeclarative...
INFO    : Downloading qtsvg...
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Finished installation of qtsvg-Windows-Windows_11_23H2-Clang-Windows-Windows_11_23H2-X86_64.7z in 2.75022045
INFO    : Downloading qttranslations...
INFO    : Finished installation of qttools-Windows-Windows_11_23H2-Clang-Windows-Windows_11_23H2-X86_64.7z in 6.77735378
INFO    : Finished installation of qtbase-Windows-Windows_11_23H2-Clang-Windows-Windows_11_23H2-X86_64.7z in 7.68534680
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Downloading llvm...
INFO    : Finished installation of qttranslations-Windows-Windows_11_23H2-Clang-Windows-Windows_11_23H2-X86_64.7z in 5.50731286
INFO    : Downloading d3dcompiler_47...
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Finished installation of llvm-mingw-20231128-ucrt-x86_64-runtime.7z in 2.68107407
INFO    : Downloading opengl32sw...
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Finished installation of d3dcompiler_47-x64.7z in 2.86295934
INFO    : Finished installation of qtdeclarative-Windows-Windows_11_23H2-Clang-Windows-Windows_11_23H2-X86_64.7z in 10.97629081
INFO    : Redirected: mirror.aarnet.edu.au
INFO    : Finished installation of opengl32sw-64-mesa_11_2_2-signed_sha256.7z in 3.19139364
ERROR   : Updater caused an IO error: [Errno 2] No such file or directory: '/home/paul/tmp/aqt/6.8.0/llvm_mingw/mkspecs/qconfig.pri'
paul@jafar:~/tmp/aqt$ ls 6.7.3/ 6.8.0/
6.7.3/:
llvm-mingw_64

6.8.0/:
llvm-mingw_64
paul@jafar:~/tmp/aqt$

Code of Conduct

jdpurcell commented 4 days ago

I think the same problem is happening when trying to install Qt 6.8 cross-compiled ARM64 on an X64 host.

C:\Users\WDAGUtilityAccount\Downloads>aqt version
INFO    : aqtinstall(aqt) v3.1.18 on Python 3.12.4 [CPython MSC v.1940 64 bit (AMD64)]

C:\Users\WDAGUtilityAccount\Downloads>aqt list-qt windows desktop --arch 6.8.0
win64_llvm_mingw win64_mingw win64_msvc2022_64 win64_msvc2022_arm64_cross_compiled

C:\Users\WDAGUtilityAccount\Downloads>aqt install-qt windows desktop 6.8.0 win64_msvc2022_arm64_cross_compiled --autodesktop
INFO    : aqtinstall(aqt) v3.1.18 on Python 3.12.4 [CPython MSC v.1940 64 bit (AMD64)]
WARNING : Specified Qt version "6.8.0" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.
WARNING : Specified target combination "windows desktop win64_msvc2022_arm64_cross_compiled" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.
INFO    : Downloading qtbase...
INFO    : Downloading qtsvg...
INFO    : Downloading qtdeclarative...
INFO    : Downloading qttools...
INFO    : Redirected: qt.mirror.constant.com
INFO    : Redirected: qt.mirror.constant.com
INFO    : Redirected: qt.mirror.constant.com
INFO    : Redirected: qt.mirror.constant.com
INFO    : Finished installation of qtsvg-Windows-Windows_11_23H2-MSVC2022-Windows-Windows_11_23H2-ARM64.7z in 1.36060130
INFO    : Downloading qttranslations...
INFO    : Redirected: qt.mirror.constant.com
INFO    : Finished installation of qttranslations-Windows-Windows_11_23H2-MSVC2022-Windows-Windows_11_23H2-ARM64.7z in 2.28810100
INFO    : Finished installation of qttools-Windows-Windows_11_23H2-MSVC2022-Windows-Windows_11_23H2-ARM64.7z in 4.92074820
INFO    : Finished installation of qtbase-Windows-Windows_11_23H2-MSVC2022-Windows-Windows_11_23H2-ARM64.7z in 21.28903570
INFO    : Finished installation of qtdeclarative-Windows-Windows_11_23H2-MSVC2022-Windows-Windows_11_23H2-ARM64.7z in 44.54433420
ERROR   : Updater caused an IO error: [Errno 2] No such file or directory: 'C:\\Users\\WDAGUtilityAccount\\Downloads\\6.8.0\\msvc2022_arm64_cross_compiled\\mkspecs\\qconfig.pri'

I looked on disk and found that the file is really located at C:\Users\WDAGUtilityAccount\Downloads\6.8.0\msvc2022_arm64\mkspecs\qconfig.pri

EDIT: See #832