Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Make install path
Forum Updated to NodeBB v4.3 + New Features

Make install path

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 3.7k 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.
  • _ Offline
    _ Offline
    _Mark_
    wrote on last edited by
    #1

    Hello,
    I'm reading the docs about qmake project variables:

    http://qt-project.org/doc/qt-5.0/qtdoc/qmake-variable-reference.html

    but I can't understand how to achieve the following.
    I have a project, say in /home/marco/myproject/src which place the output file into the default directory.
    I want to add a make step (install) to:

    • copy the executables (and qml directory) to /home/marco/myproject/bin
    • copy other files to the same dir

    I tried to add:

    @
    target.files += myotherfiles
    target.path = /home/marco/myproject/bin
    INSTALLS += target
    @

    but it tries to copy into /opt/myproject and of course it can't.
    What is the variable that holds the install path?

    1 Reply Last reply
    0
    • _ Offline
      _ Offline
      _Mark_
      wrote on last edited by
      #2

      Partially solved setting:

      @
      target.path = /home/marco/myproject/bin
      target.files += myotherfiles
      @

      BEFORE calling the pri file of the qtquick2applicationviewer (for qml).
      No need to set the INSTALLS variable.

      It works, but it creates a myproject directory aside the bin one. I don't want that. I want the myproject output folder in the default location. Only the "install" directory (bin) should be created in the given path.

      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