无法在有关 qmake 项目的 cmd 中调用 'make clean'
Can not call 'make clean' in cmd regarding qmake project
我正在阅读 Qt 开发基础 - Johan Thelin。
此处引用第 450 页中有关构建 QMake 项目的内容。
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' 清理文件。但是 cmd 显示消息 'make' 不是内部或外部命令,也不是可运行的程序或批处理文件。
我搜索了 here and tried to find the PATH to make inside Qt directory. But not successful. Then according to this solution 我也尝试使用 mingw32-make。但结果相同。
你们中的任何人都可以帮助我吗?
如果您使用的是 mingw32,请尝试 mingw32-make clean
。记住,必须把mingw的bin目录添加到User Enviroment
才能使用这个命令。关注 "My Computer" > "Properties" > "Advanced" > "Environment Variables" > "Path"
并添加 ;C:\Qt\Tools\mingw492_32\bin
或
使用命令:setx PATH %PATH%;C:\Qt\Tools\mingw492_32\bin
我正在阅读 Qt 开发基础 - Johan Thelin。
此处引用第 450 页中有关构建 QMake 项目的内容。
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' 清理文件。但是 cmd 显示消息 'make' 不是内部或外部命令,也不是可运行的程序或批处理文件。
我搜索了 here and tried to find the PATH to make inside Qt directory. But not successful. Then according to this solution 我也尝试使用 mingw32-make。但结果相同。
你们中的任何人都可以帮助我吗?
如果您使用的是 mingw32,请尝试 mingw32-make clean
。记住,必须把mingw的bin目录添加到User Enviroment
才能使用这个命令。关注 "My Computer" > "Properties" > "Advanced" > "Environment Variables" > "Path"
并添加 ;C:\Qt\Tools\mingw492_32\bin
或
使用命令:setx PATH %PATH%;C:\Qt\Tools\mingw492_32\bin