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.4k 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.
  • mistralegnaM Offline
    mistralegnaM Offline
    mistralegna
    wrote on 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
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      • mistralegnaM Offline
        mistralegnaM Offline
        mistralegna
        wrote on 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
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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

          mistralegnaM 1 Reply Last reply
          0
          • jsulmJ jsulm

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

            mistralegnaM Offline
            mistralegnaM Offline
            mistralegna
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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

              • Login

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