“无法确定要运行哪个“make"命令.检查构建配置中的“make"步骤."Qt创建者 [英] “Could not determine which ”make“ command to run. Check the ”make“ step in the build configuration.” Qt creator
问题描述
我安装了 Qt Creator 5.10.1,当我构建项目时出现错误:无法确定要运行哪个make"命令.检查构建配置中的make"步骤.
I installed Qt Creator 5.10.1 and when I built the project I had a error : "Could not determine which "make" command to run. Check the "make" step in the build configuration.".
我已经在另一台 PC 上安装了 Qt,我看到了这个问题 无法确定哪个制造"命令运行.检查制造"构建配置中的步骤."Qt 创建者
I have already install Qt on another PC and I saw this question "Could not determine which "make" command to run. Check the "make" step in the build configuration." Qt creator
但在工具 > 选项 > 构建 &Run > Kits 我有很多桌面 Qt 5.10.1 所以他有 1 个.
but in Tools > Options > Build & Run > Kits I have lot of Desktop Qt 5.10.1 so he have 1.
对不起我的英语,因为我是法国人,我 13 岁,所以我的技能有限
Sorry for my english as I'm french and I 13 so my skill is limited
https://www.dropbox.com/s/lg17a54pdgj9923/screen.png?dl=0
推荐答案
您可以在位于窗口左下角的 Build Kit Selector(带有锤子图像的按钮)中看到所选的 Build Kit.
You can see the selected build kit in the Build Kit Selector located at the bottom left of your window (button with the hammer image).
如果您转到 Tools >,您还可以管理任何构建工具包.选项 >构建与运行
.
对于 Qt 中的任何构建工具包,您都需要具有以下组件:
For any build kit in Qt, you need to have the following components:
设备 - 您可以使用不同或相同类型的处理器构建应用程序或台式机/本地计算机或远程计算机或设备.
Device - You can build your application or your desktop/local computer or a remote computer or device with a different or same kind of processor.
编译器 - 在此处指定兼容 C++ 编译器的位置.单击管理会将您带到 Compilers
选项卡,您可以在其中添加任意数量的编译器.如果您使用的是 Windows,您很可能会在此位置与 Qt 一起安装 MinGW
编译器 - C:\Qt\Tools\MinGW\bin\gcc.exe
.您还可以选择一个与 Visual Studio 一起安装的编译器,它将是一个 MSVC
编译器.
Compiler - Specify the location of a compatible C++ compiler here. Clicking on manage takes you to the Compilers
tab where you can add as many compilers as you want. If you are on Windows, you will most likely have a MinGW
compiler installed along with Qt at this location - C:\Qt\Tools\MinGW\bin\gcc.exe
. You can also select a compiler installed with Visual Studio which will be a MSVC
compiler.
Qt 版本 - 您需要指定的最后一件事是 Qt 版本
中的 Qmake
构建器.您需要使用您之前在此构建工具包中选择的适当 C++ 编译器来选择它.如果您有 MinGW C++ 编译器,则指定 MinGw qmake.exe
的路径,如果它是 MSVC
编译器,则选择 MSVC
基于qmake.exe
.在 Windows 上,您所有的 qmake.exe
将位于 C:\Qt\
Qt Version - The last thing you need to specify is the Qmake
builder which is in Qt Version
. You will need to select this with the appropriate C++ compiler that you previously selected in this build kit. If you have a MinGW C++ compiler, then specify a path for a MinGw qmake.exe
and if it is a MSVC
compiler then select a MSVC
based qmake.exe
. On Windows, all your qmake.exe
's will be located at C:\Qt\<Qt-version>\<compiler-version&type>\bin\qmake.exe
.
请记住,如果您要为不同的处理器或操作系统构建项目,则需要合适的编译器并选择 Qmake.一旦您正确选择了这些(并在选择器中选择了该构建工具包),您的项目就会正确构建.
Keep in mind that if you are building the project for a different processor or operating system, you will need an appropriate compiler and Qmake selected. Once you select these properly (and select that build kit in selector), your project will build properly.
这篇关于“无法确定要运行哪个“make"命令.检查构建配置中的“make"步骤."Qt创建者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!