Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Custom Process Step not working under Windows

    Tools
    2
    3
    1430
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kuschky last edited by

      Hello,

      I'm using custom process steps under Linux and they are working fine. Now I want to build the project under Windows 8.1 and all custom process Steps I tried are failing with an error like this. even a simple echo does not work. I'm using QtCreator 3.6.0 with Qt 5.3.2 MSVS 2010 32bit.

      15:48:32: Running steps for project myApp...
      15:48:32: Could not start process "echo" hello
      Error while building/deploying project myApp(kit: Qt 5.3.2 (msvc2010_opengl))
      When executing step "Custom Process Step"

      what I did under "project" / "build settings"/"Build Steps" was to created a new Custom Process Step and entered "echo" in the Command text box and "hello" in the Argument Box.

      Can somebody tell me what I'm doing wrong?

      Thx

      1 Reply Last reply Reply Quote 0
      • Chris Kawa
        Chris Kawa Moderators last edited by

        On Windows echo, cd, dir and some others are not applications (i.e. there's no echo.exe on the system) so they can't be "run". They are commands. You can run these by passing them to command processor (cmd.exe).
        For example to run echo hello put cmd.exe in the Command field and /c echo hello in the Arguments field.

        1 Reply Last reply Reply Quote 0
        • K
          kuschky last edited by

          Thanks for your answer. Yes you are right this commands are part of the command shell. With normal .exe programs it works :-)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post