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. QT dlls needed after build on Windows
Forum Update on Tuesday, May 27th 2025

QT dlls needed after build on Windows

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 1.3k Views 3 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.
  • E Offline
    E Offline
    eldiener
    wrote on 11 May 2015, 00:09 last edited by
    #1

    I successfully built an application and ran dependency walker on the exe. It showed the dependencies including a number of qt5 dlls which were not installed on the path when I installed qt. I can find the dlls in the particular kit I used to build /bin directory.

    Is there a way to deploy the exe so that qt creator automatically adds any needed dlls to the output directory of the exe.

    Was qt supposed to add its own dlls to the path when I installed qt ?

    I see the same qt dlls in the /bin directory of each of my kits as well as some of them in the /tools/qtcreator/bin directory. is the same-named dll the exact same dll each time ?

    J 1 Reply Last reply 11 May 2015, 06:05
    0
    • L Offline
      L Offline
      Leonardo
      wrote on 11 May 2015, 03:27 last edited by
      #2

      I think this is what you're looking for:

      http://doc.qt.io/qt-5/windows-deployment.html#the-windows-deployment-tool

      1 Reply Last reply
      0
      • E eldiener
        11 May 2015, 00:09

        I successfully built an application and ran dependency walker on the exe. It showed the dependencies including a number of qt5 dlls which were not installed on the path when I installed qt. I can find the dlls in the particular kit I used to build /bin directory.

        Is there a way to deploy the exe so that qt creator automatically adds any needed dlls to the output directory of the exe.

        Was qt supposed to add its own dlls to the path when I installed qt ?

        I see the same qt dlls in the /bin directory of each of my kits as well as some of them in the /tools/qtcreator/bin directory. is the same-named dll the exact same dll each time ?

        J Offline
        J Offline
        JKSH
        Moderators
        wrote on 11 May 2015, 06:05 last edited by
        #3

        Hi,

        @eldiener said:

        Is there a way to deploy the exe so that qt creator automatically adds any needed dlls to the output directory of the exe.

        See @Leonardo's link for automatic deployment. However, not that the tool is still not perfect, because it can't always know which plugins your app needs.

        Was qt supposed to add its own dlls to the path when I installed qt ?

        No. Adding DLLs to the PATH can cause DLL Hell -- programs can crash.

        I see the same qt dlls in the /bin directory of each of my kits as well as some of them in the /tools/qtcreator/bin directory. is the same-named dll the exact same dll each time ?

        They are not the same. You must not use the DLLs in /tools/qtcreator/bin. These are for Qt Creator only, not for your apps. (Qt Creator is also an .exe that is built with Qt, so it needs Qt DLLs to run)

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0

        1/3

        11 May 2015, 00:09

        • Login

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