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. [SOLVED] Can't start my Program.exe on other PCs

[SOLVED] Can't start my Program.exe on other PCs

Scheduled Pinned Locked Moved General and Desktop
15 Posts 3 Posters 4.0k 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.
  • M Offline
    M Offline
    MisteKiste
    wrote on last edited by
    #1

    Hey,

    I can start my deployed tool on my PC. But on other Pcs wihtout Qt its not working:
    bq. qt this application has requested the runtime to terminate it in an unusual waybq.

    Yes I copied the Dlls from my minGW Folder. Like this:

    -app.exe
    -Qt5Core.dll
    -Qt5Gui.dll
    -Qt5Widgets.dll
    -icudt52.dll
    -icuin52.dll
    -icuuc52.dll
    -libgcc_s_dw2-1.dll
    -libstdc++-6.dll
    -libwinpthread-1.dll
    -platforms (folder)
    --qwindows.dll

    But its still not working and I dont know what to do :(

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      read "this":http://doc.qt.io/qt-5/windows-deployment.html carefully. Especially the section "Application Dependencies"

      Also make sure that all of the copied DLLs match the version you built against.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MisteKiste
        wrote on last edited by
        #3

        I used the Depency Walker and this is the outout:
        !http://i.imgur.com/sStGzIb.png()!

        Do you know this issue? How can i fix it?

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          don't mind about the dependencies of the Qt libs for now.
          Provide all direct dependencies of your application as statet in the link i've posted.

          There are several missing which you didn't list.

          Then run it again. If there is a DLL missing, a message will popup and tell you which one is missing.

          But the message from your first post seems like you copied the wrong version DLLs or missing an essential DLL.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MisteKiste
            wrote on last edited by
            #5

            oh i forgot some dlls to list in main post:
            bq. -icudt52.dll
            -icuin52.dll
            -icuuc52.dll
            -libEGL.dll
            -libgcc_s_dw2-1.dll
            -libGLESv2.dll
            -libstdc++-6.dll
            -libwinpthread-1.dll bq.

            I edited main post...its of course still not working

            1 Reply Last reply
            0
            • raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #6

              when you are sure that you've copied over all DLLs check if you are copied the right ones.
              If you didn't mix up release and debug binaries, and copied the Qt libs really from the version you linked against.

              For example on the machine where the application is running you can use "Process Explorer":https://technet.microsoft.com/de-at/sysinternals/bb896653.aspx to check which DLLs are loaded by the applciation and verify if you copied the right one.

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MisteKiste
                wrote on last edited by
                #7

                The name of my MinGW Folfer is: mingw482_32
                So its 4.82 version? I'am using Qt 5.3...shouldnt it run?

                1 Reply Last reply
                0
                • raven-worxR Offline
                  raven-worxR Offline
                  raven-worx
                  Moderators
                  wrote on last edited by
                  #8

                  the "offical Qt 5.3 release binaries are built":http://qt-project.org/wiki/MinGW with mingw 4.8.2, yes.

                  The safest way is to do like i suggested before to check with Process Explorer which libs are really loaded ...

                  --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                  If you have a question please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    MisteKiste
                    wrote on last edited by
                    #9

                    Yeah with dependeny walker i can check this too or?

                    http://i.imgur.com/68yzBbS.png

                    So there are some missing dlls right? Now I need to figure why the missing dlls are not loading

                    1 Reply Last reply
                    0
                    • raven-worxR Offline
                      raven-worxR Offline
                      raven-worx
                      Moderators
                      wrote on last edited by
                      #10

                      theoretically yes. Dependency walker displays the linked dependency libraries and checks if it can find it in the PATH.
                      But Process Explorer is the safest way since it actually displays the really loaded DLLs.

                      You can also try to run "windeployqt" which creates a bundle with all libraries needed. Don't know how reliable it is though.

                      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                      If you have a question please use the forum so others can benefit from the solution in the future

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        MisteKiste
                        wrote on last edited by
                        #11

                        Ah okay...that view is much better...
                        http://i.imgur.com/MmwrgaO.png

                        Mhm is this the error maybe? qwindows.dll isnt loading from the Dirctory where the exe is...Do you know how to fix it?

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          MisteKiste
                          wrote on last edited by
                          #12

                          Mhm weeird... I checked the loaded dlls on the system where the Application is crashing...but there the qwindow is loaded from the right place:
                          http://i.imgur.com/XIuFqg6.png

                          I copied the dlls btw from this Path:
                          E:\Programme\Qt\5.3\mingw482_32

                          But I think its right...

                          Edit:
                          On my running System there loaded a qsqlite.dll from path: Qt\5.3\mingw482_32\plugins\sqldrivers\qsqlite.dll
                          But on my other System the dll isnt loaded...Do I have to add the sqllite.dll too?

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

                            [quote author="MisteKiste" date="1422019184"]Mhm is this the error maybe? qwindows.dll isnt loading from the Dirctory where the exe is...Do you know how to fix it?[/quote]Qt searches in a few different places for DLLs.

                            If you rename E:\Programme\Qt\ to E:\Programme\QtHidden, then it will load the DLLs from your exe folder.

                            Remember to deploy sqldrivers\qsqlite.dll too, if you use SQLite in your program.

                            If it still doesn't work, try this strategy: http://qt-project.org/wiki/Deploy_an_Application_on_Windows

                            !http://i.imgur.com/S582DlV.png(DLL locations)!

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

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              MisteKiste
                              wrote on last edited by
                              #14

                              Hey... you were right...qsqlite.dll was missing... I am in shame :(

                              Big thanks to raven-worx and JKSH for your time. I like this community.

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

                                You're welcome!

                                I hope you learn lots for the community, and one day you can help the community too :)

                                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