#532 Build problems on x64 with spaces in directory

Latest Subversion

I just unpacked the new SDK and updated the SVN tree. When trying to build, I was greeted with an error message "MSB6006: cmd.exe exited with error code 9009".
After a little check, I saw that the cmd.exe was trying to access "C:\Users\<NAME>\Projects\Visual", not realizing that after a space, the path continues with "Studio 2010" and the other subdirectories.
The fix is to be made in the Common.vcxproj: make the paths relative.
The following is the changed snippet, you will find this on lines 112 to 122, I unfortunately do not know how to make a patch file.

<CustomBuild Include="..\src\Version.template">
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\python.exe ..\make_versioncpp.py ..\src</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\src\Version.cpp;%(Outputs)</Outputs>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\.svn;%(AdditionalInputs)</AdditionalInputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Make Version.cpp</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\python.exe ..\make_versioncpp.py ...\src</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Make Version.cpp</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\src\Version.cpp;%(Outputs)</Outputs>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\.svn;%(AdditionalInputs)</AdditionalInputs>


  • C.RAZY

    C.RAZY - 2013-01-05

    The working Common.vcxproj file

  • Vezzra

    Vezzra - 2013-01-05

    Should be fixed in SVN. However, instead of using relative paths I decided to enclose everything in double quotes.

  • Geoff Topping

    Geoff Topping - 2013-01-05
    • status: open --> closed-fixed
  • Geoff Topping

    Geoff Topping - 2013-01-05

    Reportedly fixed in SVN. Please verify if so inclined.

  • C.RAZY

    C.RAZY - 2013-01-07

    Verified fixed, builds as a charm with absolute directories in double quotes as well :)


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks