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. Which DLL files to need to run exe files in other computer?
Forum Updated to NodeBB v4.3 + New Features

Which DLL files to need to run exe files in other computer?

Scheduled Pinned Locked Moved General and Desktop
42 Posts 8 Posters 37.9k 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.
  • L Offline
    L Offline
    LeeMinh
    wrote on last edited by
    #5

    It show *icuin51.dll * is missing too after I copy 3 dll files to debug folder.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #6

      Hi,

      1. When you want to deploy your application, please compile it under release mode instead of debug mode.

      2. You can use microsoft tool "process explorer ", to find all the dlls used in your application.

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

        [quote author="LeeMinh" date="1374492589"]It show *icuin51.dll * is missing too after I copy 3 dll files to debug folder.[/quote]Then copy icuin51.dll into your folder.

        In the link I posted, read "Creating the Application Package" -- it lists many DLLs that you need

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

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LeeMinh
          wrote on last edited by
          #8

          "Qt relies on the ICU library for unicode support. Therefore, you must include the ICU DLLs that are located in the bin directory of your Qt installation if Qt was configured to use ICU. The Qt version bundled in the Qt5 package uses ICU, so deployment is needed there. The ICU DLLs are version dependent and have to match the ones your Qt version was linked against."- Creating the Application Package

          Is it right?

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

            From that paragraph, scroll down some more. You will see a few lists/tables of DLLs.

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

            1 Reply Last reply
            0
            • L Offline
              L Offline
              LeeMinh
              wrote on last edited by
              #10

              Dear JKSH.
              Thanks for your sugesstion. There are dll files which I copy to release folder - It contain excute file.

              Qt5Core.dll
              Qt5Gui.dll
              Qt5Sql.dll
              Qt5Widgets.dll
              icudt51.dll
              icuin51.dll
              icuuc51.dll
              libgcc_s_dw2-1.dll
              libstdc++-6.dll
              libwinpthread-1.dll

              So, I have another question. What will we do if we want to move these dll to another folder such as lib folder. I think that it will be clearly if we move these dll to a clearly name folder . It also we will not hold on it at release folder.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dbzhang800
                wrote on last edited by
                #11
                1. You need re-read the documentation “Creating the Application Package” .
                • The windows platform plugin must be deployed, it's required by all the GUI application.
                • Seems that Qt5Sql.dll is deployed by yourself. so it nearly sure that database plugins is needed by your application.
                • other plugins such as imageformats is required if you used .gif/.jpg/... files in your application.
                • ...
                1. Please use a process tool such as Microsoft's process explorer to monitor your application, so you can easily find out all the dlls needed by your application.
                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  LeeMinh
                  wrote on last edited by
                  #12

                  Will I must copy these dll - I comment above - (in C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin) to RELEASE folder?

                  I cant' copy them to another folder such as \MyProject\Myresources\Mylib folder?

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    LeeMinh
                    wrote on last edited by
                    #13

                    When I copy to target machine. It show

                    This application has requested the Runtime to terminate it in an unusual way Please contact the application's support team for more information

                    May you explain it for me. I'm looking forward to receiving your msg.
                    Thanks,

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

                      [quote author="LeeMinh" date="1374553838"]When I copy to target machine. It show

                      This application has requested the Runtime to terminate it in an unusual way Please contact the application's support team for more information

                      May you explain it for me. I'm looking forward to receiving your msg.
                      Thanks,[/quote]That means your program crashed. Does it run properly on your development PC?

                      Did you remember to include platforms\qwindows.dll?

                      What OS does your development PC use? What OS does your target PC use?

                      [quote author="LeeMinh" date="1374551835"]Will I must copy these dll - I comment above - (in C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin) to RELEASE folder?

                      I cant' copy them to another folder such as \MyProject\Myresources\Mylib folder?[/quote]No. If you copy them to another folder, the .exe file can't find them. In Qt, only plugin DLLs are put in subfolders.

                      All programs will look for DLLs in the same folder as the .exe -- that is normal. If you look inside C:\Program Files, you can see that most programs put the .dll files together with the .exe files.

                      If you want to be tidy and clear, put a Shortcut on your desktop.

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

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        LeeMinh
                        wrote on last edited by
                        #15

                        [quote author="JKSH" date="1374562273"]That means your program crashed. Does it run properly on your development PC?

                        Did you remember to include platforms\qwindows.dll?

                        What OS does your development PC use? What OS does your target PC use?[/quote]

                        1.It's run fine when I run it on my development PC.

                        2.I forgot include platforms\qwindows.dll.

                        3.I use win7-32bit at development PC and target PC use win7-32bit too.

                        I have been checking how to add platforms\qwindows.dll to my project.

                        Will I copy it to \release\platforms\qwindows.dll and run executable file.

                        It didn't work in here. Will I reconfigure something at .pro file?

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

                          [quote author="LeeMinh" date="1374564383"][quote author="JKSH" date="1374562273"]That means your program crashed. Does it run properly on your development PC?

                          1.It's run fine when I run it on my development PC.[/quote][/quote]Sorry, I wasn't clear before: Does it run properly on your development PC, outside Qt Creator? Close Qt Creator, and run your program by launching the .exe file directly.

                          [quote]3.I use win7-32bit at development PC and target PC use win7-32bit too.[/quote]Ok, that should be easier then. (Deployment is harder if you build on Windows 7 and transfer to Windows XP)

                          [quote]I have been checking how to add platforms\qwindows.dll to my project.

                          Will I copy it to \release\platforms\qwindows.dll and run executable file. [/quote]Yes, that is correct. Your folder should look like this:

                          \release\application.exe
                          \release\Qt5Core.dll
                          \release\Qt5Gui.dll
                          \release\Qt5Sql.dll
                          \release\Qt5Widgets.dll
                          \release\icudt51.dll
                          \release\icuin51.dll
                          \release\icuuc51.dll
                          \release\libgcc_s_dw2-1.dll
                          \release\libstdc++-6.dll
                          \release\libwinpthread-1.dll
                          \release\platforms\qwindows.dll

                          (but maybe it needs more. Did you use "Process Explorer":http://technet.microsoft.com/en-au/sysinternals/bb896653.aspx, as suggested by 1+1=2?)

                          [quote]It didn't work in here. Will I reconfigure something at .pro file?
                          [/quote]No, the .pro file is only for compiling and linking.

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

                          1 Reply Last reply
                          0
                          • L Offline
                            L Offline
                            LeeMinh
                            wrote on last edited by
                            #17

                            When I copy a basic project to target PC. It work fine.

                            1 Reply Last reply
                            0
                            • L Offline
                              L Offline
                              LeeMinh
                              wrote on last edited by
                              #18

                              [quote author="JKSH" date="1374565818"]
                              Sorry, I wasn't clear before: Does it run properly on your development PC, outside Qt Creator? Close Qt Creator, and run your program by launching the .exe file directly.
                              [/quote]
                              Yes,I close the Qt Creator and It run fine at development machine.

                              1 Reply Last reply
                              0
                              • L Offline
                                L Offline
                                LeeMinh
                                wrote on last edited by
                                #19

                                It's seem missing some dll when I ran real project at target machine.I use sqlite for database and some images for icon. That's all.

                                1 Reply Last reply
                                0
                                • L Offline
                                  L Offline
                                  LeeMinh
                                  wrote on last edited by
                                  #20

                                  It show
                                  C:\Qt\Qt5.1.0\5.1.0\mingw48_32\plugins\imageformats\qgif.dl at Process Explorer.
                                  Will we create release\imageformats folder?

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

                                    Hi,

                                    The deployment documentation "plugins chapter":https://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html#qt-plugins

                                    explains that.
                                    Basically you need to create the plugins folder and the needed subfolder like imageformats.

                                    appfolder
                                    appfolder\plugins
                                    appfolder\plugins\imageformats
                                    etc...

                                    I've written a doc note with some examples about it but it has been on moderation for some time now and I can't access it.

                                    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
                                    • L Offline
                                      L Offline
                                      LeeMinh
                                      wrote on last edited by
                                      #22

                                      yes, thanks for your solution . But it didnt' work , Will we NEED reconfigure something at .pro file?

                                      After I add these folder.

                                      *appfolder\plugins*
                                      appfolder\plugins\accessible
                                      appfolder\plugins\imageformats
                                      appfolder\plugins\platforms
                                      appfolder\plugins\sqldrivers

                                      It didn't work. So that, I try with :

                                      *appfolder\release\plugins*
                                      appfolder\plugins\plugins\accessible
                                      appfolder\plugins\plugins\mageformats
                                      appfolder\plugins\plugins\platforms
                                      appfolder\plugins\plugins\sqldrivers

                                      It didn't work too.

                                      1 Reply Last reply
                                      0
                                      • D Offline
                                        D Offline
                                        dbzhang800
                                        wrote on last edited by
                                        #23

                                        remove the plugins from your paths please

                                        [quote author="LeeMinh" date="1374571023"]yes, thanks for your solution . But it didnt' work , Will we NEED reconfigure something at .pro file?

                                        After I add these folder.

                                        *appfolder\plugins*
                                        appfolder\plugins\accessible
                                        appfolder\plugins\imageformats
                                        appfolder\plugins\platforms
                                        appfolder\plugins\sqldrivers

                                        It didn't work. So that, I try with :

                                        *appfolder\release\plugins*
                                        appfolder\plugins\plugins\accessible
                                        appfolder\plugins\plugins\mageformats
                                        appfolder\plugins\plugins\platforms
                                        appfolder\plugins\plugins\sqldrivers

                                        It didn't work too.[/quote]

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

                                          The only exception is platform, it should be in appfolder directly so:

                                          appfolder\plaftorms
                                          appfolder\plugins\imageformats
                                          etc..

                                          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

                                          • Login

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