All Custom Build steps failing

Sysprogs forums Forums VisualGDB All Custom Build steps failing

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34720
    dwarnow-xylem
    Participant

    I am trying to execute pre-build steps on multiple embedded projects across multiple platforms.  No commands seem to work, even commands as simple as Echo fail.

    Below is an example of the commands which are failing the build from the vgdbproj file.  I have them skipped here because they were failing the build, but that is not the issue.

    <PreBuildActions>
    <CustomActionBase xsi:type="CommandLineAction">
    <SkipWhenRunningCommandList>true</SkipWhenRunningCommandList>
    <RemoteHost>
    <HostName>BuildMachine</HostName>
    <Transport>BuiltinShortcut</Transport>
    </RemoteHost>
    <Command>cmd /c "echo test"</Command>
    <WorkingDirectory>$(BuildDir)</WorkingDirectory>
    <BackgroundMode>false</BackgroundMode>
    </CustomActionBase>
    <CustomActionBase xsi:type="CommandLineAction">
    <SkipWhenRunningCommandList>true</SkipWhenRunningCommandList>
    <RemoteHost>
    <HostName>BuildMachine</HostName>
    <Transport>BuiltinShortcut</Transport>
    </RemoteHost>
    <Command>cmd /c "cd ../Common/parameters &amp;&amp; python parameter_headercreator.py"</Command>
    <WorkingDirectory>$(BuildDir)</WorkingDirectory>
    <BackgroundMode>false</BackgroundMode>
    </CustomActionBase>
    </PreBuildActions>

    I have tried both the call to cmd ( via cmd /c) and the direct calls and neither method works.

    The log output is as follows:

    Executing pre-build actions
    Run "cmd /c "echo test" " in directory "C:\_Projects\HMI_Prod_Firmware\ESP32" on local computer
    cmd /c "echo test"
    -------------------------------------------------------------
    Command exited with code -1
    Executable: cmd /c "echo test"
    Arguments:
    Directory: C:\_Projects\HMI_Prod_Firmware\ESP32
    Command-line action failed

    Thank you.

    #34721
    support
    Keymaster

    Hi,

    It looks like you specified both command and arguments together:

    <Command>cmd /c "echo test"</Command>

    Please use this syntax instead:

    <Command>cmd</Command>
    <Arguments>/c "echo test"</Arguments>

    If you are using the VisualGDB Project Properties window, simply put the /c “echo test” part in the Arguments field.

    #34722
    dwarnow-xylem
    Participant

    I knew it was going to be a silly problem on my side…  That, of course, fixed the problem.  Thank you so much.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.