Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. DLL error when running
Qt 6.11 is out! See what's new in the release blog

DLL error when running

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 1.8k 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.
  • CoreyWhiteC Offline
    CoreyWhiteC Offline
    CoreyWhite
    wrote on last edited by
    #1

    Hi, I'm new. I did a bit of research into this problem and found out I would have to add a few DLLs into the directory with my executable. I don't know how to do this, and need someone to tell me exactly where the DLLs are so I can copy them. Also is there anyway to solve this problem altogether? I read in another thread that if I bought the professional version this wouldn't happen. I would like to do that, but don't like the idea of paying for a yearly subscription. You know?

    Anyway, If you can help let me know!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Have a look at this fine wiki "entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows about deployment on Windows.

      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
      • CoreyWhiteC Offline
        CoreyWhiteC Offline
        CoreyWhite
        wrote on last edited by
        #3

        There must be a better way to do it. Is it possible to down load something that can handle this sort of thing for me? Basically that is just trial and error until I find the needed DLLs. Plus it doesn't even link them to the final .exe. I don't want to complain, but good grief. If I buy the software will this problem stop?

        (edit) I just found this from your link & it sounds like a plan:

        Launch MyApp.exe. While it is running, try to delete all DLLs. The DLLs that aren’t used will go to the recycle bin, leaving behind only the DLLs that you need.

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          [quote author="CoreyWhite" date="1419373399"]There must be a better way to do it. Is it possible to down load something that can handle this sort of thing for me?[/quote]There's also the "windeployqt":http://doc.qt.io/qt-5/windows-deployment.html#the-windows-deployment-tool tool which tries to automate the process for you. It's not perfect though, and might load some DLLs that you don't need.

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

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            IIRC there's windeployqt can help you with that part of the deployment.

            I know it's not the most easy task but it's nothing Qt specific. As soon as you have external dependencies you have to go through the same process for any library/framework/toolkit.

            You can use something like Dependency Walker to see which dlls your application is linked against.

            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
            • CoreyWhiteC Offline
              CoreyWhiteC Offline
              CoreyWhite
              wrote on last edited by
              #6

              OK, & thank you. I am content to just include DLLs. There are just so many of them to include!

              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
              • Unsolved