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. How to copy/include the DLLs my application needs?
Qt 6.11 is out! See what's new in the release blog

How to copy/include the DLLs my application needs?

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 3 Posters 6.6k 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.
  • N Offline
    N Offline
    nonot1
    wrote on last edited by
    #1

    Hello,

    How do I modify the Qt project settings so that it automatically copies whatever Qt/MinGW DLLs my application needs to the build output directory? (So I can zip it up and ship to any modern Windows machine with no Qt installed.)

    Qt has a lot of DLLs, and I don't know exactly what I need.

    I know about using the depends tool, but that is a manual process. (I assume Qt/MinGW already know what's needed since they just did the build and are privy to the locations of their own specific DLLs)

    Thank you

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      You can "build standalone Qt application for windows with all required files":http://developer.qt.nokia.com/wiki/Build_Standalone_Qt_Application_for_Windows

      Best regards,
      Leon

      http://anavi.org/

      1 Reply Last reply
      0
      • ZlatomirZ Offline
        ZlatomirZ Offline
        Zlatomir
        wrote on last edited by
        #3

        Careful with the LGPL restrictions about static.

        A simple method (on Windows - since we are talking about .dll) is to not set anything in the path, then open the built application from Explorer and it will tell you which .dll to copy - you need two for MinGW run-time and one per Qt module.

        A little more complicated is with plugins and image-formats, but after a little trial-and-error you can solve the puzzle.

        //Anyway nonot1 idea would be and interesting tool ;)

        https://forum.qt.io/category/41/romanian

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nonot1
          wrote on last edited by
          #4

          [quote author="leon.anavi" date="1304449687"]You can "build standalone Qt application for windows with all required files":http://developer.qt.nokia.com/wiki/Build_Standalone_Qt_Application_for_Windows

          [/quote]

          It's been mentioned "elsewhere":http://developer.qt.nokia.com/forums/viewreply/32996/ that statically linking Qt is not the best solution. (Plus is problematic with LGPL, as the above poster said.)

          Thus, my question about auto-bundling the DLL files.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            leon.anavi
            wrote on last edited by
            #5

            You can read the official Qt documentation about "deploying Qt's libraries":http://doc.qt.nokia.com/latest/deployment.html#deploying-qt-s-libraries and create an installer for your application using "NSIS":http://nsis.sourceforge.net/Main_Page

            Regards,
            Leon

            http://anavi.org/

            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