我在尝试构建使用 QT 的 C++ 项目时出现此错误。
我检查了下面的链接,但用户没有说出解决方案。
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/