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. MinGW Qt Application Deployment NOT WORKING
Forum Updated to NodeBB v4.3 + New Features

MinGW Qt Application Deployment NOT WORKING

Scheduled Pinned Locked Moved General and Desktop
16 Posts 8 Posters 13.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.
  • S Offline
    S Offline
    SSJMetroid
    wrote on last edited by
    #7

    Hi Chris. I am using a fresh install of whatever version of Qt Creator that was. This is my build environment:
    !http://i.imgur.com/b31t527.png(build settings)!
    As you can see, I am using Qt 5.0.1 to build the project.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #8

      OK, so you have at least these files in your deployment:
      @
      yourapp.exe

      and the following from under C:\Qt\Qt5.0.1\mingw47_32\bin

      Qt5Core5.dll
      Qt5Gui.dll
      Qt5Widgets.dll
      Qt5Multimedia.dll
      Qt5MultimediaWidgets.dll
      Qt5Network.dll
      Qt5OpenGL.dll
      icudt49.dll
      icuin49.dll
      icuuc49.dll
      libEGL.dll
      libGLESv2.dll
      D3DCompiler_43.dll
      platforms\windows.dll

      the following as required

      imageformats*
      mediaservice*

      The MingW runtime

      MINGWM10.DLL
      LIBGCC_S_sjlj-1.DLL
      LIBSTDC++-6.dll
      @

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SSJMetroid
        wrote on last edited by
        #9

        Thanks for your reply, Chris. I have located all of the files you specified already. I am guessing you tested this loadout to see if it works? A couple questions arise for me...

        1. Some of the files you specified are named differently. Is this expected? For example: platforms\windows.dll is actually plugins\platforms\qwindows.dll on my end.

        2. Should I be putting them into the same folder setup in my deployment? For example: putting plugins\imageformats* into the same directory as my exe file? Or just imageformats*? Or just copying all the DLL files and pasting them into the same directory as my exe file?

        3. And most importantly: I have used all possible methods of searching my computer and have NOT LOCATED the file MINGWM10.DLL inside the C:\Qt folder (my installation directory for Qt). Is this just wrong? Is my installation bugged? Should I really be checking another directory for this? (I have previously installed a version of mingw on my computer located at C:\mingw, but this is more than likely a different version than the one that my deployment of Qt is using...)

        1 Reply Last reply
        0
        • A Offline
          A Offline
          artome
          wrote on last edited by
          #10

          Hi,
          must likely this thread is dead but I'm having exactly the same behavior in a windows XP with qt5.1. I would like to ask SSJMetroid how he'd solved the problem.

          regards,

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SSJMetroid
            wrote on last edited by
            #11

            I was able to fix the issue by providing ALL of the correct DLL files in all of the correct folder locations. Here is what my project directory looks like:

            Main Folder:
            imageformats folder
            mediaservice folder
            platforms folder
            D3DCompiler_43.dll
            icudt49.dll
            icuin49.dll
            icuuc49.dll
            libEGL.dll
            libgcc_s_sjlj-1.dll
            libGLESv2.dll
            libstdc++-6.dll
            libwinpthread-1.dll
            Qt5Core.dll
            Qt5Gui.dll
            Qt5Multimedia.dll
            Qt5MultimediaWidgets.dll
            Qt5Network.dll
            Qt5OpenGL.dll
            Qt5Widgets.dll
            main.exe

            platforms folder:
            qwindows.dll

            mediaservice folder:
            qsengine.dll
            qtmedia_audioengine.dll

            imageformats folder:
            qgif.dll
            qico.dll
            qjpeg.dll
            qmng.dll
            qsvg.dll
            qtga.dll
            qtiff.dll
            qwbmp.dll

            1 Reply Last reply
            0
            • A Offline
              A Offline
              artome
              wrote on last edited by
              #12

              ok Thanks.

              my fault was that I was adding qwindows.dll into th main folder instead of a subfolder platforms.

              Regards

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Shashank
                wrote on last edited by
                #13

                Hi

                i followed all the steps mentioned as above but still i am getting the above error. please specify the solution for that.

                thanks in advance

                regards
                shashank

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  poketmonister
                  wrote on last edited by
                  #14

                  ssjmetroid can u tell me how u got the correct folder locations. im having the same problem

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

                    [quote author="poketmonister" date="1397336037"]ssjmetroid can u tell me how u got the correct folder locations. im having the same problem
                    [/quote]Hi poketmonister, the correct locations are shown at http://qt-project.org/wiki/Deploy_an_Application_on_Windows

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

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      poketmonister
                      wrote on last edited by
                      #16

                      thanks dude this had been bugging me for weeks....now it is done

                      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