c++ - 错误 MSB6006 : "cmd.exe" exited with code 3

标签 c++ qt

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

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

最佳答案

在您的构建日志中,缺少一些文件,因此构建操作失败。查看这些错误:

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

关于c++ - 错误 MSB6006 : "cmd.exe" exited with code 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15378407/

相关文章:

c++ - "expected unqualified-id"上的 "using"编译失败

c++ - 我可以使用 Qt LGPL 许可证并在没有任何限制的情况下出售我的应用程序吗?

c++ - Qt Signal 覆盖上一个

c++ - Qt5 是否有类似于 StringBuilder 或 StringBuffer 的类?

c++ - 使用 Qt 和 pjsip 在一个应用程序中的多个端口上监听 SIP

c++ - 类方法的模板特化。 "Function template already defined"

c++ - 我如何使用c/c++实时录制和播放我的声音

c++ - 如何在 C++ 中实现基本的 Variant(以及 Variant 上的访问者)模板?

c++ - Qt 忙处理对话框

linux - Qt Creator 不允许我运行 GUI 应用程序