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
make is not recognized as an internal or external command - Qt SDK - Windows
提问by Aquarius_Girl
I installed Qt
through Qt-SDK 2010.01
.
我Qt
通过Qt-SDK 2010.01
.
How to run make
on Qt
's terminal now?
现在如何make
在Qt
的终端上运行?
I have set the System path:
我已经设置了系统路径:
Qt path command prompt:
Qt路径命令提示符:
Please help. :( :(
请帮忙。:( :(
回答by leemes
You should run mingw32-make
instead of make
.
你应该运行mingw32-make
而不是make
.
If you want to be able to call it via make
for 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.bat
in ...\mingw\bin
which runs mingw32-make
to 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 实用程序来创建永久别名。