C++ 错误 MSB6006:“cmd.exe”以代码 3 退出
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15378407/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
error MSB6006: "cmd.exe" exited with code 3
提问by Tak
I have this error appearing when trying to build a C++ project which uses QT.
尝试构建使用 QT 的 C++ 项目时出现此错误。
I've checked the below link but the user didn't say the solution.
我检查了下面的链接,但用户没有说解决方案。
http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/5b0be7be-1b6e-44c2-91ca-b5a9a55a2c41/
http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/5b0be7be-1b6e-44c2-91ca-b5a9a55a2c41/
The warnings appearing are:
出现的警告是:
Warning 1
警告 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
元素“的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、AutorunflowEnabled、BaseAddress、BootstrapperComponentsBootstrapperrComponentsBootsflowEnabled、CharacterSetFlowEnabled , CLRSupport, CodePage, Configuration, ConfigurationName, ConfigurationOverrideFile, CreateDesktopShortcut, CreateWebPageOnPublish, CurrentSolutionConfigurationContents, DebugSecurityZoneURL, DebugSymbols, DebugType, DefaultClientScript, DefaultHTMLPageLayout, DefaultTargetSchema, DefineConstants, DefineDebug,
and
和
Warning 59
警告 59
The 'ToolArchitecture' attribute is not declared. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 713
未声明“ToolArchitecture”属性。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
回答by Raptor
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.