如何在 Qt6 beta 中修复 "no compiler can produce code for this qt version"?

How to fix "no compiler can produce code for this qt version" in Qt6 beta?

我很想在 Windows 10 机器上测试 Qt6 的测试版。

对于 alpha 版本,我遵循了 voidrealms this tutorial 并且它有效。

但是,当我安装beta2(6.0.0-202010220944)时,我无法使用它,因为没有套件可用。错误说:

no compiler can produce code for this qt version. Please define one or more compilers for:

x86-windows-msys-pe-64bit

在搜索此错误的解决方案时,我阅读了此 topic。但是,这对我没有帮助,因为我已经安装了最新(和更新)版本的 MSVC 2019。

以下是已安装和检测到的编译器:

我知道这是测试版,might/should 会有问题。但是,有可能使这项工作成功吗?

我认为这是 Qt 的一个错误。如果 Qt Creator 告诉您该版本的 qmake 的 ABI 是 x86-windows-msys-pe-64bit,那么这意味着它是使用 mingw 编译器构建的。如果它是用 MSVC 构建的,您应该会看到 x86-windows-msvc2019-pe-64bit。我会将其报告为错误。

同时,如果你想测试Qt6,你可以安装mingw。