我正在构建一个从以前的开发人员获得的C++项目。当我尝试编译它,我得到这个eror(我使用VS2012专业):无法建立一个C++项目
\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.
这是什么问题,我该如何解决?
谢谢,你是对的,它使用qt,可能我没有正确设置VS。我在哪里可以找到关于如何为QT开发设置Vs2012的信息以及一个hello world应用程序,它将检查VS设置是否正确?我下载QT 4.8并将其安装在我的系统上,但我不确定VS配置是否正确。 – mans 2013-02-26 09:31:23
按照答案中的链接并下载在“其他下载”部分下找到的Visual Studio加载项。安装完成后,现在可以创建Qt项目,如果在VS中单击File-> New-> Project。您还可以在Visual Studio中找到一个Qt菜单,您可以在其中配置各种选项和项目设置。对于一个简单的Qt Hello World应用程序,请看看这里:http://qt-project.org/doc/qt-4.8/gettingstartedqt.html – 2013-02-26 09:56:00
我使用了这篇文章中陈述的方法(http://stackoverflow.com/questions/12113400 /编译-qt-4-8-x-for-visual-studio-2012)编译QT与VS2012。我尝试安装VS插件,但qt 4.x的插件与VS 2012不兼容。似乎qt 5有一个VS2012的插件。 QT 5和QT 4.x有什么区别?它们是后向兼容的吗?我的项目是用4.7编译的。 – mans 2013-02-26 21:47:09