Benedikt
Benedikt

Reputation: 21

error MSB6006: "cmd.exe" with Code 9009; command "C:\Program"

I am using Visual Studio 2010, unfortunately in German, and I get an error MSB6006: "cmd.exe" with Code 9009, see here:

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" wurde mit dem Code 9009 beendet.

The output says command "C:\Program" can't be found.

The error originates here:

<CustomBuild
  Sources                     ="@(CustomBuild)"
  BuildSuffix                 ="$(BuildSuffix)"

  TrackerLogDirectory         ="%(CustomBuild.TrackerLogDirectory)"
  MinimalRebuildFromTracking  ="%(CustomBuild.MinimalRebuildFromTracking)"

  TLogReadFiles               ="@(CustomBuildTLogReadFiles)"
  TLogWriteFiles              ="@(CustomBuildTLogWriteFiles)"
  TrackFileAccess             ="$(TrackFileAccess)"
  ToolArchitecture            ="$(CustomBuildToolArchitecture)"
  TrackerFrameworkPath        ="$(CustomBuildTrackerFrameworkPath)"
  TrackerSdkPath              ="$(CustomBuildTrackerSdkPath)"

  AcceptableNonZeroExitCodes  ="%(CustomBuild.AcceptableNonZeroExitCodes)"
  >
</CustomBuild>

It seems like some environmental variable is wrong in regards to the spaces. I assume it could be fixed easily by adding "s somewhere, but I don't know where and haven't found anything useful. How can I fix this?

Upvotes: 0

Views: 4459

Answers (1)

Benedikt
Benedikt

Reputation: 21

I have resloved the issue by moving libraries that I use (qt, osg) in a folder without spaces. I believe the problem was related to qt.

Upvotes: 2

Related Questions