QtCreator:没有找到有效的工具包

2022-01-20 00:00:00 qt qt-creator ide c++

仅在 Windows 7 上安装了 IDE.我想创建一个普通 C++ 项目(非 QT 项目);但是我收到一个错误:找不到有效的套件.当我点击 Options->Kits 时,我看到了 Desktop (default) 套件,它没有显示任何错误.

Installed just the IDE on Windows 7. I want to create a Plain C++ Project (Non-QT Project); however I get an error: No valid kits found. When I click on Options->Kits, I see the Desktop (default) kit, and it shows no errors.

我收到错误是因为我没有安装 Qt 库吗?如果是这样,有什么办法可以绕过下载/安装它而只使用 IDE?

Am I getting the error because I didn't install a Qt library? If so, is there any way I can bypass downloading/installing that and just use the IDE?

推荐答案

发现问题.Qt Creator 希望您使用在其 Qt 库之一下列出的编译器.使用维护工具安装它.

Found the issue. Qt Creator wants you to use a compiler listed under one of their Qt libraries. Use the Maintenance Tool to install this.

这样做:

转到工具 -> 选项.... 选择构建 &向左跑.打开套件选项卡.您应该在列表中有 Manual -> Desktop (default) 行.选择它.现在在 Qt 版本的 PATH (qt5) 中选择类似 Qt 5.5.1 的东西组合框,然后单击应用按钮.从现在开始你应该可以创建、构建和运行空的 Qt 项目.

Go to Tools -> Options.... Select Build & Run on left. Open Kits tab. You should have Manual -> Desktop (default) line in list. Choose it. Now select something like Qt 5.5.1 in PATH (qt5) in Qt version combobox and click Apply button. From now you should be able to create, build and run empty Qt project.

相关文章