Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Custom deployment
Forum Updated to NodeBB v4.3 + New Features

Custom deployment

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 1.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
    Morix Dev
    wrote on last edited by
    #1

    I am working on QTCreator targeting an embedded linux device. Everything is fine except the fact that I am not able to add some custom file to deploy step...

    In .pro file I set:

    @
    target.path = /home/root
    INSTALLS += target
    @

    and I am able to deploy my executable to the remote device...

    Now what if I would like to add some custom files to the deployment process?

    I'd tried to add the following lines to my .pro file:

    @
    mypackage.files = /path/to/my/files/on/my/pc/*
    mypackage.path = /home/root
    INSTALLS += mypackage
    @

    but it doesn't work...

    How can I do that?

    /Morix

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andrep
      wrote on last edited by
      #2

      Shouldn't that be INSTALLS += mypackage ?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Morix Dev
        wrote on last edited by
        #3

        Yes, sure... I've made a typo while posting to the forum... obviously I've tried "INSTALLS += mypackage" (now I've edited my original post) but it does not work...

        /Morix

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Morix Dev
          wrote on last edited by
          #4

          Ok, I found two distinct solutions...

          FIRST SOLUTION:
          @
          mypackage.files = /path/to/my/files/on/my/pc
          mypackage.path = /home/root
          @
          In this case the folder "pc" (together with its content) is copied to the target device.

          SECOND SOLUTION:
          It is also possible to exploit some undocumented QMAKE functions (as explained "here":http://www.qtcentre.org/wiki/index.php?title=Undocumented_qmake#Replace_functions):

          @
          mypackage.files = $$files(/path/to/my/files/on/my/pc/*)
          mypackage.path = /home/root
          @

          In this case only the files contained in "pc" are copied to the target device (as requested by me).

          /Morix

          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