Can not call 'make clean' in cmd regarding qmake project

↘锁芯ラ 提交于 2019-12-11 10:55:42

问题


I'm reading Foundations of Qt Development - by Johan Thelin.

Here quote from page 450 about Building QMake Project.

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.

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.

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?


回答1:


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

OR

use command: setx PATH %PATH%;C:\Qt\Tools\mingw492_32\bin



来源:https://stackoverflow.com/questions/33913416/can-not-call-make-clean-in-cmd-regarding-qmake-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!