Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Deploying an Application on Windows

    General and Desktop
    3
    3
    636
    Loading More Posts
    • 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.
    • W
      WhatIf last edited by

      Hi,

      I successfully deployed a test app to get used to the process but I just have one question. I followed the steps in this link, not all of them just the ones I listed below:

      https://wiki.qt.io/Deploy_an_Application_on_Windows

      Copy the following into C:\Deployment
      The release version of MyApp.exe
      All the .dll files from C:\Qt\5.2.1\mingw48_32\bin
      All the folders from C:\Qt\5.2.1\mingw48_32\plugins\

      The program ran successfully but I'm just wondering if I need all the .dll files for every single program I develop. The .dll files are 1.9GB, are they all need for all types of programs?

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by mrjj

        Hi
        no no, often its far less.
        http://www.tripleboot.org/?p=138

        Ahh, you used the (Quick and dirty) and skipped the
        "If your app worked correctly, congratulations! You are almost ready for deployment. You don't want to ship a 1.5GB package though, so it's time to clean up unused files."

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          You don't need every DLLs shipped with Qt or MinGW.

          I don't remember if Qt 5.2.1 already had it but in more recent versions your have the windeployqt tool that helps getting the dependencies in place.

          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 Reply Quote 0
          • First post
            Last post