23

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

我的错误

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

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

出现的警告是:

警告 1

命名空间“ http://schemas.microsoft.com/developer/msbuild/2003 ”中的元素“PropertyGroup”在命名空间“ http://schemas.microsoft.com/developer/msbuild/2003 ”中具有无效的子元素“IntDirTrailingSlashWarning”'。预期的可能元素列表:'Property、AllowUnsafeBlocks、AppConfigForCompiler、ApplicationIcon、ApplicationRevision、ApplicationVersion、AppDesignerFolder、AspNetConfiguration、AssemblyKeyContainerName、AssemblyKeyProviderName、AssemblyName、AssemblyOriginatorKeyFile、AssemblyOriginatorKeyFileType、AssemblyOriginatorKeyMode、AssemblyType、AutorunEnabled、BaseAddress、BootstrapperComponentsLocation、BootstrapperComponentsUrl、BootstrapperEnabled、CharacterSet、CheckForOverflowUnderflow , CLRSupport, CodePage, 配置, ConfigurationName, ConfigurationOverrideFile, CreateDesktopShortcut, CreateWebPageOnPublish, CurrentSolutionConfigurationContents, DebugSecurityZoneURL, DebugSymbols, DebugType, DefaultClientScript, DefaultHTMLPageLayout, DefaultTargetSchema, DefineConstants, DefineDebug,

警告 59

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

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

4

1 回答 1

4

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

"\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.
于 2013-03-13T07:07:27.350 回答