错误MSB6006:"cmd.exe"以代码3退出 [英] error MSB6006: "cmd.exe" exited with code 3

查看:121
本文介绍了错误MSB6006:"cmd.exe"以代码3退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have this error appearing when trying to build a C++ project which uses QT.

我已经检查了以下链接,但用户未说解决方案.

I've checked the below link but the user didn't say the solution.

>://social.msdn.microsoft.com/Forums/zh-CN/msbuild/thread/5b0be7be-1b6e-44c2-91ca-b5a9a55a2c41/

出现的警告是:

警告1

中的元素"PropertyGroup"命名空间" http://schemas.microsoft.com/developer/msbuild/2003 "具有命名空间中的无效子元素"IntDirTrailingSlashWarning"" http://schemas.microsoft.com/developer/msbuild/2003 ".列表可能的元素:属性,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:\ ProgramFiles \ MSBuild \ Microsoft.Cpp \ v4.0 \ Microsoft.CppCommon.targets 21

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

"ToolArchitecture"属性不是宣布.C:\程序Files \ MSBuild \ Microsoft.Cpp \ v4.0 \ Microsoft.CppCommon.targets 713

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

这是具有错误的文件:错误文件
这是日志文件:日志文件

This is the file having the error: error file
This is the log file: log file

推荐答案

在您的构建日志中,缺少某些文件,因此该构建操作失败.查看以下错误:

In your build log, some files are missing, hence the build action is failed. Review these errors:

"\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.

这篇关于错误MSB6006:"cmd.exe"以代码3退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆