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
QtWS25 Last Chance

QT dlls needed after build on Windows

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 1.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.
  • E Offline
    E Offline
    eldiener
    wrote on 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 ?

    JKSHJ 1 Reply Last reply
    0
    • L Offline
      L Offline
      Leonardo
      wrote on 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

        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 ?

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on 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

        • Login

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