错误MSB6006:“cmd.exe”退出代码3

时间:2013-03-13 06:25:14

标签: c++ qt

尝试构建使用QT的C ++项目时出现此错误。

My error

我检查了以下链接,但用户没有说出解决方案。

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

出现的警告是:

警告1

  

元素'PropertyGroup'中   名称空间“http://schemas.microsoft.com/developer/msbuild/2003”有   命名空间中的无效子元素“IntDirTrailingSlashWarning”   'http://schemas.microsoft.com/developer/msbuild/2003'。清单   可能的元素:'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

  

“ToolArchitecture”属性不是   声明。 C:\ PROGRAM   Files \ MSBuild \ Microsoft.Cpp \ v4.0 \ Microsoft.CppCommon.targets 713

这是有错误的文件: error file
这是日志文件: log file

1 个答案:

答案 0 :(得分: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.