2013-03-13 96 views
22

嘗試構建使用QT的C++項目時出現此錯誤。錯誤MSB6006:使用代碼3退出「cmd.exe」

My error

我檢查下面的鏈接,但用戶並沒有說的解決方案。

http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/5b0be7be-1b6e-44c2-91ca-b5a9a55a2c41/

出現的警告是:

警告1

The element 'PropertyGroup' in namespace ' http://schemas.microsoft.com/developer/msbuild/2003 ' has invalid child element 'IntDirTrailingSlashWarning' in namespace ' http://schemas.microsoft.com/developer/msbuild/2003 '. List of possible elements expected: 'Property, AllowUnsafeBlocks, AppConfigForCompiler, ApplicationIcon, ApplicationRevision, ApplicationVersion, AppDesignerFolder, AspNetConfiguration, AssemblyKeyContainerName, AssemblyKeyProviderName, AssemblyName, AssemblyOriginatorKeyFile, AssemblyOriginatorKeyFileType, AssemblyOriginatorKeyMode, AssemblyType, AutorunEnabled, BaseAddress, BootstrapperComponentsLocation, BootstrapperComponentsUrl, BootstrapperEnabled, CharacterSet, CheckForOverflowUnderflow, CLRSupport, CodePage, Configuration, ConfigurationName, ConfigurationOverrideFile, CreateDesktopShortcut, CreateWebPageOnPublish, CurrentSolutionConfigurationContents, DebugSecurityZoneURL, DebugSymbols, DebugType, DefaultClientScript, DefaultHTMLPageLayout, DefaultTargetSchema, DefineConstants, DefineDebug, DefineTrace, DelaySign, DisableLangXtns, DisallowUrlActivation, CodeAnalysisAdditionalOptions, CodeAnalysisApplyLogFileXsl, CodeAnalysisConsoleXsl, CodeAnalysisCulture, CodeAnalysisFailOnMissingRules, CodeAnalysisForceOutput, CodeAnalysisGenerateS.... C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 21

警告59

The 'ToolArchitecture' attribute is not declared. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 713

這是具有錯誤的文件: error file
這是日誌文件: log file

+0

指向代碼/資源的更多錯誤? – Raptor 2013-03-13 06:27:41

+0

我不這麼認爲 – Tak 2013-03-13 06:37:20

+0

請顯示生成日誌。 – Raptor 2013-03-13 06:47:04

回答

3

在你構建日誌,有些文件丟失,從而生成操作失敗。查看這些錯誤:

"\bin\rcc.exe" -name "qtdataacquisition" -no-compress "D:\hussein\KinectQtDataAcquisition\KinectQtDataAcquisition\qtdataacquisition.qrc" -o .\GeneratedFiles\qrc_qtdataacquisition.cpp 
     The system cannot find the path specified. 
     Moc'ing qtdataacquisition.h... 
     Uic'ing qtdataacquisition.ui... 
     The system cannot find the path specified. 
     Moc'ing DataCollector.h... 
     The system cannot find the path specified. 
     The system cannot find the path specified. 
     Rcc'ing qtdataacquisition.qrc... 
    1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3. 
+0

此路徑被找到「D:\ hussein \ KinectQtDataAcquisition \ KinectQtDataAcquisition \ qtdataacquisition.qrc」,那麼我可以檢查下一個? – Tak 2013-03-14 04:35:38

+0

檢查權限是否可寫? – Raptor 2013-03-14 05:59:11

+0

我已經完全控制和重建,但仍然是相同的錯誤 – Tak 2013-03-14 06:19:16

相關問題