Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Custom Process Step in Qt Creator Project

Custom Process Step in Qt Creator Project

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 5.3k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    MartinCook
    wrote on last edited by
    #1

    Using 5.1.1

    Trying to add a command step to the build.

    All I want to do is copy the .h files from one directory to another. However, when I add the following command to Custom Process Steps ...

    Command: copy
    Arguments c:\code\projects\qpgui\qpgui*.h c:\code\projects\include

    ... the Custom Process Step correctly appears as ...

    Custom Process Step: "copy " c:\code\projects\qpgui\qpgui*.h c:\code\projects\include

    .. but the build gives me this error ...
    @
    16:49:10: The process "C:\Qt\Qt5.1.1\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
    16:49:10: Starting: "copy " c:\code\projects\qpgui\qpgui*.h c:\code\projects\include
    qtcreator_ctrlc_stub: Command line failed: "copy " c:\code\projects\qpgui\qpgui*.h c:\code\projects\include
    16:49:10: The process "copy " exited with code -1.
    Error while building/deploying project qpgui (kit: Desktop Qt 5.1.1 MinGW 32bit)
    When executing step 'Custom Process Step'
    @

    I used absolute paths to be sure I was pointing to the right directories.

    What am I missing?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      compor
      wrote on last edited by
      #2

      hello,

      although i don't use a windows environment, could you try the following?

      a] remove the wildcard char from the source and target dirs and select a specific header

      b] (if a] fails) also add the absolute path for the 'copy' command

      otherwise, if you are using qmake you could add a custom command at the qmake variable
      @QMAKE_POST_LINK@

      personally, i prefer to associate the 'install' step with also installing headers by adding in my .pro file

      @
      HDR_DIR = ../include

      hdr_install.path = $${HDR_DIR}
      hdr_install.files = $${HEADERS}
      hdr_install.extra = mkdir -p ${{HDR_DIR}}

      INSTALLS += hdr_install
      @

      so, executing 'make install' also copies my headers.
      although, i don't know if you have 'make' available with your setup,
      which is the required for the above suggestion.

      anyhow, you could also have a look at "qmake variable reference":http://qt-project.org/doc/qt-4.8/qmake-environment-reference.html#customizing

      purposes as understood by the purposer will be misunderstood by others

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved