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. QMake subdir template retrieve all qt libs

QMake subdir template retrieve all qt libs

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmakedependencieslibsqt 5.4.2
6 Posts 3 Posters 2.3k Views
  • 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
    mistralegna
    wrote on 18 Apr 2016, 09:16 last edited by
    #1

    Hi all !

    I have a qmake which is building a template=SUBDIRS collection of subdirs. I package my application with Qt IFW. In order to deliver an executable to my end users, I copy the Qt libs from $$[QT_INSTALL_PREFIX]/bin/*.dll to $$PWD/packages/com.enterprise.appname/bin.

    Currently, I'm copying all the libs, but I would like to solely copy the effective libraries needed by the projet. Is there any techniques to retrieve from the top project file all the libs needed by each of the subdir ?

    Thank you a lot for your answers!

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 18 Apr 2016, 09:23 last edited by
      #2

      You can use Qt Deployment Tool: http://doc.qt.io/qt-5/windows-deployment.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mistralegna
        wrote on 18 Apr 2016, 09:59 last edited by
        #3

        As told by the documentation, the command to use is :

        windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>

        What if I don't have a single application binary, but a number not fixed ?

        I really would like to find, if possible, a mean to access the dependencies of each of my subdir.

        Thank you for your answers!

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 18 Apr 2016, 11:18 last edited by
          #4

          So you have more than one executable file?
          Or one executable file and several libraries?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply 18 Apr 2016, 12:35
          0
          • J jsulm
            18 Apr 2016, 11:18

            So you have more than one executable file?
            Or one executable file and several libraries?

            M Offline
            M Offline
            mistralegna
            wrote on 18 Apr 2016, 12:35 last edited by
            #5

            @jsulm I have more than one executable file and several libraries.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 18 Apr 2016, 22:15 last edited by
              #6

              Hi,

              One thing that you could try is to add a custom target that will call windeployqt on your target. Something a bit like the tests target when using Qt's unit tests module.

              Hope it helps

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              5/6

              18 Apr 2016, 12:35

              • Login

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