Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. .dll cannot be loaded
Forum Updated to NodeBB v4.3 + New Features

.dll cannot be loaded

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 801 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.
  • R Offline
    R Offline
    Rabih EL Kadi
    wrote on last edited by
    #1

    Hello everyone,

    I am currently working on an application that requires certain .dll files to be loaded, when I run it directly from Qt, it runs without facing any issue, however when I build and generate an .exe file, it doesn't run.

    I created a logs folder to check out the problem, it seems that one of the .dll files isn't loading.

    777cad8b-3865-4e69-bcac-f644f24e653e-image.png
    I tried a few suggestions I found online, but nothing worked so far.

    Thank you.

    JonBJ 1 Reply Last reply
    0
    • R Rabih EL Kadi

      Hello everyone,

      I am currently working on an application that requires certain .dll files to be loaded, when I run it directly from Qt, it runs without facing any issue, however when I build and generate an .exe file, it doesn't run.

      I created a logs folder to check out the problem, it seems that one of the .dll files isn't loading.

      777cad8b-3865-4e69-bcac-f644f24e653e-image.png
      I tried a few suggestions I found online, but nothing worked so far.

      Thank you.

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @Rabih-EL-Kadi

      • Verify the .dll file itself can be located at whatever location it is to be loaded from.

      • Run a Windows Dependency Walker on the DLL file to see what other DLLs it requires and that they can be located.

      The most likely is that your search path for locating DLLs is different when running from Qt Creator versus when running the .exe externally, from a shortcut or a Command Prompt.

      R 1 Reply Last reply
      4
      • JonBJ JonB

        @Rabih-EL-Kadi

        • Verify the .dll file itself can be located at whatever location it is to be loaded from.

        • Run a Windows Dependency Walker on the DLL file to see what other DLLs it requires and that they can be located.

        The most likely is that your search path for locating DLLs is different when running from Qt Creator versus when running the .exe externally, from a shortcut or a Command Prompt.

        R Offline
        R Offline
        Rabih EL Kadi
        wrote on last edited by
        #3

        @JonB Thank you so much!

        I was missing the Qt5Xml.dll file, I did not expect such an error, I thought windeployqt would deploy all needed dlls into the project.

        Thank you again.

        JonBJ 1 Reply Last reply
        0
        • R Rabih EL Kadi

          @JonB Thank you so much!

          I was missing the Qt5Xml.dll file, I did not expect such an error, I thought windeployqt would deploy all needed dlls into the project.

          Thank you again.

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by
          #4

          @Rabih-EL-Kadi
          I haven't used windeployqt. But I would have thought it should include that Qt5Xml.dll correctly for you. I don't know how it works, but verify whether you have told it about that file?

          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