23

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

My error

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/

The warnings appearing are:

Warning 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

and

Warning 59

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

6
  • Any further error pointing to codes / resources ?
    – Raptor
    Commented Mar 13, 2013 at 6:27
  • show the build log please.
    – Raptor
    Commented Mar 13, 2013 at 6:47
  • Similar question: stackoverflow.com/questions/6773122/…
    – Raptor
    Commented Mar 13, 2013 at 6:47
  • 1
    any luck? I'm having the same issue and I couldn't find any solution for it ...
    – dcg
    Commented Aug 25, 2014 at 10:08
  • 5
    "closed as too localized"?? how was this determined? Jeez, sometimes SO gets too "close" happy on questions.
    – ScottN
    Commented Jan 27, 2016 at 3:54

1 Answer 1

4

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.
10
  • this path was found "D:\hussein\KinectQtDataAcquisition\KinectQtDataAcquisition\qtdataacquisition.qrc", so what can I check for next?
    – Tak
    Commented Mar 14, 2013 at 4:35
  • check permission as well, is it writable ?
    – Raptor
    Commented Mar 14, 2013 at 5:59
  • I've made it full control and rebuild but still same error
    – Tak
    Commented Mar 14, 2013 at 6:19
  • How about path : `D:\hussein\KinectQtDataAcquisition\KinectQtDataAcquisition\GeneratedFiles` ? seems it can't be written in this path. Make sure you "Clean & Re-build"
    – Raptor
    Commented Mar 14, 2013 at 6:21
  • 1
    this path have a full control"r/w anything"
    – Tak
    Commented Mar 14, 2013 at 6:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.