我正在構建一個從以前的開發人員獲得的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