Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Deploying qt5.2.0: won't find windows platform plugin

Deploying qt5.2.0: won't find windows platform plugin

Scheduled Pinned Locked Moved Installation and Deployment
37 Posts 9 Posters 29.8k Views
  • 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.
  • hskoglundH Offline
    hskoglundH Offline
    hskoglund
    wrote on last edited by
    #15

    Thanks!
    I'm used to pay money to Microsoft for new Visual Studio releases, but now when I've switched to Qt and can download it for free, I figured blogging etc. is another way to pay.

    This infamous issue about not finding the windows plugin, it is a challenge to communicate to new users I think. Maybe for the next Qt conference, you can make T-shirts with that dialog box on them :-)

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

      Thank you JKSH and hskoglund
      I tried the same and it worked.

      I was facing problem when i was creating the setup for windows using Inno compiler.

      When I was including platform dlls with its folder, it didn't include platform folder but instead directly copied qwindows.dll to the installed folder.

      In Inno scripts, it was mentioned like this:

      Source: "C:\MyQtApp\release\platforms*"; DestDir: "{app}"; Flags: ignoreversion

      So I added "platforms" manually so that on installation all platform dll would be copied to platform folder.

      Source: "C:\MyQtApp\release\platforms*"; DestDir: "{app}\platforms"; Flags: ignoreversion

      Pinnacle_cool

      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #17

        Good!

        BTW, I've updated "my blog post":http://www.tripleboot.org/?p=138 about deploying Qt now, so it's really fancy :-)

        1 Reply Last reply
        0
        • G Offline
          G Offline
          geoniko
          wrote on last edited by
          #18

          "That directory “QTDIR/Qt5.2.0/5.2.0/mingw48_32/plugins/platforms” is written into your Qt files when you install it"

          Can you be more specific? Where exactly is it written too? I need to build x64 windows version of Qt 5.3 for VS2012 (which is not available for download). It would be good to set this correctly so that at least for developers it will work...

          Thanks for any advice...

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Priya_sipl
            wrote on last edited by
            #19

            Hello Geonlko,

            “That directory “QTDIR/Qt5.2.0/5.2.0/mingw48_32/plugins/platforms” is written into your Qt files when you install it” means

            When we install qt (in this it is Qt5.2.0 mingw 32 bit version) in our system,
            all packages get installed with it.

            In that packages you will find platform folder that has platform specific dlls.

            These are required when we build setup for our Qt application.

            For Qt 5.3 64 bit version, you have to go for VS2013, it is available

            Pinnacle_cool

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

              [quote author="geoniko" date="1401351479"]"That directory “QTDIR/Qt5.2.0/5.2.0/mingw48_32/plugins/platforms” is written into your Qt files when you install it"

              Can you be more specific? Where exactly is it written too?[/quote]They are written inside the DLLs themselves.

              In hindsight, that's a poor decision because it prevents people from moving their Qt installation to a different folders, but changing this behaviour isn't high on the priority list.

              [quote]I need to build x64 windows version of Qt 5.3 for VS2012 (which is not available for download). It would be good to set this correctly so that at least for developers it will work...[/quote]When you run configure.bat, set the -prefix option to the path where you want to install Qt.

              Then, make sure that your Qt libraries are located in this exact path on each of your developers' machines.

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

              1 Reply Last reply
              0
              • F Offline
                F Offline
                frankiefrank
                wrote on last edited by
                #21

                I stumbled upon this post, while having some deployment issues.

                @hskoglund
                You wrote about a post where you talk about how to set the path Qt uses to find plugins. But I think your blog changed, cause the correct post now lists 5+ ways, and it is located here:
                http://www.tripleboot.org/?p=536

                "Roads? Where we're going, we don't need roads."

                1 Reply Last reply
                0
                • hskoglundH Offline
                  hskoglundH Offline
                  hskoglund
                  wrote on last edited by
                  #22

                  Hi, actually it's two different blog posts; what happened is that in March I wrote a blog post (the one I refer to at the top of this page) then I realized the topic about plugins and DLLs needed another blog post :-) and that's the one you're referring to.

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    frankiefrank
                    wrote on last edited by
                    #23

                    bq. Note that the 32-bit MSVC DLL files are in SysWOW64 and the 64-bit files are in System32. Makes perfect sense, agreed?

                    I had to reread this one three times.

                    "Roads? Where we're going, we don't need roads."

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      Lumit
                      wrote on last edited by
                      #24

                      This works, thanks to JKSH
                      [quote author="JKSH" date="1394236581"]Glad I could help. :) Thank you for blogging about Qt and for helping others use Qt![/quote]

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        Angivare
                        wrote on last edited by
                        #25

                        Hi, I was the original poster.
                        That post was just to notify you: JKSH's way is the exact good way to release your applications, and it worked for several applications in my case!

                        Although, it still doesn't work for the original application I was trying to build..
                        I guess that's really just a bug, but I won't be able to post a bug ticket as the problem seems to be linked with the actual application, and I can't find what caused it in the application (which is pretty big unfortunately..)

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          AlterX
                          wrote on last edited by
                          #26

                          I have same problem using Qt 5.3
                          Despite I have tried all combinations, I am not able to lauch application: it always says that it is not able to find windows plugin!!!

                          Qt Ambassador
                          Real-time cooperative teams: http://www.softairrealfight.net
                          Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                          https://codereview.qt-project.org/...

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

                            Hi,

                            [quote author="AlterX" date="1416406048"]I have same problem using Qt 5.3
                            Despite I have tried all combinations, I am not able to lauch application: it always says that it is not able to find windows plugin!!![/quote]What combinations did you try?

                            Did you follow the instructions at http://qt-project.org/wiki/Deploy_an_Application_on_Windows closely?

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

                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              AlterX
                              wrote on last edited by
                              #28

                              yes, I have my app and then platforms/qwindows.dll
                              then I tried plugins/platforms/qwindows.dll
                              then qwindows.dll in same dir of exe
                              I tried to use qt.conf and put plugins path to "."
                              All above leads to same error!

                              Qt Ambassador
                              Real-time cooperative teams: http://www.softairrealfight.net
                              Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                              https://codereview.qt-project.org/...

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

                                [quote author="AlterX" date="1416406280"]yes, I have my app and then platforms/qwindows.dll
                                then I tried plugins/platforms/qwindows.dll
                                then qwindows.dll in same dir of exe
                                I tried to use qt.conf and put plugins path to "."
                                All above leads to same error![/quote]It's not just about qwindows.dll. You need to make sure all the other DLLs are in the correct places too.

                                Please follow every single step under "Initial deployment (Quick and dirty)" in the Wiki. If it still doesn't work, please post a screenshot of your deployment folder.

                                Also, did you create a Debug build or Release build?

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

                                1 Reply Last reply
                                0
                                • A Offline
                                  A Offline
                                  AlterX
                                  wrote on last edited by
                                  #30

                                  I did...nothing is work or even better, now is running but nothing happens or is shown!!I removed all unecessary dlls and left all plugins content...

                                  Qt Ambassador
                                  Real-time cooperative teams: http://www.softairrealfight.net
                                  Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                                  https://codereview.qt-project.org/...

                                  1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    AlterX
                                    wrote on last edited by
                                    #31

                                    This is really awful...Why didn't they do something like they did for Android??

                                    Qt Ambassador
                                    Real-time cooperative teams: http://www.softairrealfight.net
                                    Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                                    https://codereview.qt-project.org/...

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

                                      They did. It's called windeployqt.

                                      Anyway, your descriptions are vague so it's hard for me to tell what exactly you did. If you want more help, carry out steps #1, #2.1, #2.2, #2.3 and #2.4 of “Initial deployment (Quick and dirty)” and then post your screenshot.

                                      Also post the full error message.

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

                                      1 Reply Last reply
                                      0
                                      • A Offline
                                        A Offline
                                        AlterX
                                        wrote on last edited by
                                        #33

                                        Hi, sorry, I did now it seems to work...I say seems, because on a virtual machine it is not able to connect over network even if internet is available.
                                        And How does windeployqt work? Is that integrated in QtCreator??

                                        Qt Ambassador
                                        Real-time cooperative teams: http://www.softairrealfight.net
                                        Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                                        https://codereview.qt-project.org/...

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

                                          Glad to hear :)

                                          See http://qt-project.org/doc/qt-5/windows-deployment.html#the-windows-deployment-tool

                                          It's a command line tool, similar to androiddeployqt. I don't know if they integrated androiddeployqt into Qt Creator or not, but windeployqt isn't integrated (yet?).

                                          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