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 is missing when launching the QT GUI app
Forum Updated to NodeBB v4.3 + New Features

DLL is missing when launching the QT GUI app

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 4.6k 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.
  • Z Offline
    Z Offline
    Zunneh
    wrote on last edited by
    #1

    Hello guys , My app launches from inside Qt Creator no problem, but when I go into the debug folder, I find the .exe file and I try to launch it, it complains that there is a missing DLL ( Qt5Network.dll , Qt5SerialPortd.dll , Qt5Cored.dll ,Qt5Guid.dll )
    how can i add thoose DLL ? thanks

    my english is average, please use simple words and try to be the most explicit, thank you

    JKSHJ 1 Reply Last reply
    0
    • Z Zunneh

      Hello guys , My app launches from inside Qt Creator no problem, but when I go into the debug folder, I find the .exe file and I try to launch it, it complains that there is a missing DLL ( Qt5Network.dll , Qt5SerialPortd.dll , Qt5Cored.dll ,Qt5Guid.dll )
      how can i add thoose DLL ? thanks

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by JKSH
      #2

      @Zunneh said in DLL is missing when launching the QT GUI app:

      when I go into the debug folder, I find the .exe file and I try to launch it, it complains that there is a missing DLL

      Hi @Zunneh, you must deploy your application to run it outside of Qt Creator: https://doc.qt.io/qt-5/windows-deployment.html

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

      Z 1 Reply Last reply
      5
      • JKSHJ JKSH

        @Zunneh said in DLL is missing when launching the QT GUI app:

        when I go into the debug folder, I find the .exe file and I try to launch it, it complains that there is a missing DLL

        Hi @Zunneh, you must deploy your application to run it outside of Qt Creator: https://doc.qt.io/qt-5/windows-deployment.html

        Z Offline
        Z Offline
        Zunneh
        wrote on last edited by
        #3

        @JKSH it work , thank you guy , now my problem is , i made a copy off my final app in another computer to test it , when i double click to the .exe , it didn't say that there are DLL missing but it didn't open the app . in my main computer ( where i developed the app with Qt ) it work perfectly after added the DLL , can someone help me please ? Thanks

        my english is average, please use simple words and try to be the most explicit, thank you

        JonBJ 1 Reply Last reply
        0
        • Z Zunneh

          @JKSH it work , thank you guy , now my problem is , i made a copy off my final app in another computer to test it , when i double click to the .exe , it didn't say that there are DLL missing but it didn't open the app . in my main computer ( where i developed the app with Qt ) it work perfectly after added the DLL , can someone help me please ? Thanks

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

          @Zunneh
          Assuming now that you are OK on the DLLs, and the deployment went well/didn't report anything, nobody will be able to tell you why your app may be behaving like this on a different installation. There are many possibilities. You either have to debug (may or may not be convenient), or you have to a insert a few "print"/"logging" statements or similar into your code to get an idea how far (if at all) it gets through the start up/code.

          1 Reply Last reply
          3
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            @Zunneh, I notice that you tried to launch a Debug build. I can tell because all your DLLs end with a d.

            Have you tried deploying a Release build? (Your app should be deployed with Qt5Core.dll, Qt5Gui.dll, ... not Qt5Cored.dll, Qt5Guid.dll, ...)

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

            1 Reply Last reply
            3

            • Login

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