我正在构建一个C++项目,这是我从以前的开发人员那里得到的。当我试图编译它时,我得到了这个错误(我使用的是VS2012专业版):
\bin\rcc.exe -name resources resources.qrc -o debug\qrc_resources.cpp
1> Moc'ing aboutdialog.h...
1> The system cannot find the path specified.
1> Moc'ing action.h...
1> UIC aboutdialog.ui
1> The system cannot find the path specified.
1> UIC mainwindow.ui
1> The system cannot find the path specified.
1> RCC resources.qrc
1> The system cannot find the path specified.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code 3.
1>Done executing task "CustomBuild" -- FAILED.
1>Done building target "CustomBuild" in project "sv.vcxproj" -- FAILED.问题出在哪里?我该如何解决?
发布于 2013-02-26 06:58:53
该项目使用依赖于Qt库及其工具的自定义构建步骤。你至少需要下载并安装Qt (最有可能是4.8版本,Qt5刚刚发布),也许还需要下载和安装适用于Visual C++的Qt附加组件。
http://qt-project.org/downloads
发布于 2017-11-24 02:53:25
我也有同样的问题,但我的场景有点不同:
安装并配置了
这个问题发生在我身上,因为我在我的解决方案文件夹上做了一个"git clean -fdx“,这删除了所有的moc文件,因为它们被添加到了gitignore中。
要重新生成MOC文件,我必须:
这样做之后,moc文件重新生成,我可以正确地构建,但应用程序无法启动。
https://stackoverflow.com/questions/15072080
复制相似问题