无法致电'清理'在cmd中关于qmake项目 [英] Can not call 'make clean' in cmd regarding qmake project

查看:44
本文介绍了无法致电'清理'在cmd中关于qmake项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读 Qt开发基金会-Johan Thelin .

此处引用第 450 页关于构建 QMake 项目的内容.

Here quote from page 450 about Building QMake Project.

如果您选择使用QMake创建Makefile,则可以使用简单的make命令(如果使用的是Visual Studio,则为nmake)来构建项目.您可以使用make clean清理中间文件.稍微残酷的步骤是运行make distclean,它会清理所有生成的文件,包括Makefile.您将不得不再次运行QMake以获得make的Makefile.

If you choose to create a Makefile using QMake, you can build your project using a simple make command (or nmake if you’re using Visual Studio). You can clean up your intermediate files using make clean. The slightly more brutal step is to run make distclean, which cleans up all generated files, including the Makefile. You will have to run QMake again to get a Makefile for make.

我尽力使用"make clean"清除文件.但是显示消息'make'的cmd无法识别为内部或外部命令,可操作程序或批处理文件.

I tried hard to clean the files using 'make clean'. But cmd displaying the message 'make' is not recognized as an internal or external command, operable program or batch file.

我在此处进行了搜索并尝试在Qt目录中找到 make 的路径.但是没有成功.然后根据此解决方案我也尝试使用mingw32-make.但是结果相同.

I searched here and tried to find the PATH to make inside Qt directory. But not successful. Then according to this solution I tried to use mingw32-make also. But same results.

你们中的任何人都可以帮助我吗?

Anyone of you can help me?

推荐答案

如果使用的是mingw32,请尝试 mingw32-make clean .请记住,您必须将mingw的bin目录添加到 User Enviroment 中才能使用此命令.遵循我的电脑">属性">高级">环境变量">路径" 并添加; C:\ Qt \ Tools \ mingw492_32 \ bin

If you using mingw32, try mingw32-make clean. Remember, you must add mingw's bin directory to User Enviroment to use this command. Follow "My Computer" > "Properties" > "Advanced" > "Environment Variables" > "Path" and add ;C:\Qt\Tools\mingw492_32\bin

使用命令: setx PATH%PATH%; C:\ Qt \ Tools \ mingw492_32 \ bin

这篇关于无法致电'清理'在cmd中关于qmake项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆