make 未被识别为内部或外部命令 - Qt SDK - Windows

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13157068/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 10:01:38  来源:igfitidea点击:

make is not recognized as an internal or external command - Qt SDK - Windows

windowsqtmakefilemingw

提问by Aquarius_Girl

I installed Qtthrough Qt-SDK 2010.01.

Qt通过Qt-SDK 2010.01.

How to run makeon Qt's terminal now?

现在如何makeQt的终端上运行?

I have set the System path:

我已经设置了系统路径:

enter image description here

在此处输入图片说明

Qt path command prompt:

Qt路径命令提示符:

enter image description here

在此处输入图片说明

Please help. :( :(

请帮忙。:( :(

回答by leemes

You should run mingw32-makeinstead of make.

你应该运行mingw32-make而不是make.

If you want to be able to call it via makefor simplicity, you might want to define an "alias" which runs mingw32-make. While I'm not very familiar with the CMD in windows, I think this should be possible with the following command:

如果make为了简单起见,您希望能够通过调用它,您可能需要定义一个运行mingw32-make. 虽然我对 Windows 中的 CMD 不是很熟悉,但我认为使用以下命令应该可以做到:

set make=mingw32-make

However, I don't think this will be permanent. You might want to try to add a batch file make.batin ...\mingw\binwhich runs mingw32-maketo achieve this. This batch file would however need to "forward" all additional arguments to mingw32-make. Maybe there are better ways to create a permanent alias, I don't know.

但是,我认为这不会是永久性的。您可能想尝试添加一个批处理文件,make.bat...\mingw\bin其中运行mingw32-make以实现此目的。但是,此批处理文件需要将所有其他参数“转发”到mingw32-make. 也许有更好的方法来创建永久别名,我不知道。

Maybe you also want to try the DOSKEY utility programto create a permanent alias.

也许您还想尝试使用 DOSKEY 实用程序来创建永久别名。