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. Qt5 platforms plugins ?
Forum Updated to NodeBB v4.3 + New Features

Qt5 platforms plugins ?

Scheduled Pinned Locked Moved General and Desktop
28 Posts 10 Posters 46.3k 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.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    Where I should place the qwindows.dll or qwindowsd.dll ? Because as you mentioned in "Failed to load platform plugin.":http://qt-project.org/forums/viewthread/23367 it should be in platforms directory, but it did not help me. Thanks for answers...

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

      [quote author="Peppy" date="1358024644"]Where I should place the qwindows.dll or qwindowsd.dll ? Because as you mentioned in "Failed to load platform plugin.":http://qt-project.org/forums/viewthread/23367 it should be in platforms directory, but it did not help me. Thanks for answers...[/quote]It should work if the platforms directory is in the same directory as your executable:

      C:\MyApp\myapp.exe
      C:\MyApp\platforms\qwindows.dll

      When you said "It did not help me", what was the issue? What error message did you get?

      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
        Peppy
        wrote on last edited by
        #3

        @
        Debug Error
        ...
        Failed to load ... Available platforms are:
        windows
        minimal
        windows
        minimal

        Press retry...
        @

        Well, this copying did not help me at all. (Nothing has changed)...

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

          Very strange. Some questions:

          I presume it says Failed to load platform plugin "windows"., and not another plugin; is that correct?

          What's your OS? What many bits?

          Did you download the precompiled Qt 5.0.0, or build it yourself?

          Is Qt 5 in your PATH?

          Did you copy the other DLLs (e.g. Qt5Core.dll) into your application folder?

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

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Code_ReaQtor
            wrote on last edited by
            #5

            I have the same problem "here":http://qt-project.org/forums/viewthread/23658/
            If somebody manages to make it work "outside" Qt Creator, it will also be a big help to me.

            Please visit my open-source projects at https://github.com/Code-ReaQtor.

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

              Try temporarily changing the name of your top-level Qt folder (i.e. the place where you installed/built Qt) -- do any other error messages appear when you try to run your app outside Qt Creator?

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

              1 Reply Last reply
              0
              • C Offline
                C Offline
                Code_ReaQtor
                wrote on last edited by
                #7

                [quote author="JKSH" date="1358040589"]Very strange. Some questions:

                I presume it says Failed to load platform plugin "windows"., and not another plugin; is that correct?

                What's your OS? What many bits?

                Did you download the precompiled Qt 5.0.0, or build it yourself?

                Is Qt 5 in your PATH?

                Did you copy the other DLLs (e.g. Qt5Core.dll) into your application folder?[/quote]

                "windows" and "minimal"

                Windows 7 32 bits

                Built it myself - VS 2012

                NOT in the PATH (I think Qt Creator just sets the path for itself)

                Included are libGLESv2.dll, Qt5Core.dll, Qt5Gui, Qt5Widgets, paltforms(qwindows.dll, qminimal.dll)

                [quote author="JKSH" date="1358040890"]Try temporarily changing the name of your top-level Qt folder (i.e. the place where you installed/built Qt) -- do any other error messages appear when you try to run your app outside Qt Creator?[/quote]

                same results...

                Please visit my open-source projects at https://github.com/Code-ReaQtor.

                1 Reply Last reply
                0
                • Chris KawaC Offline
                  Chris KawaC Offline
                  Chris Kawa
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Strange indeed. It looks like it's finding multiple versions of the same plugin and tries to load the wrong one.
                  Kind of a brute force approach but maybe try to find all qwindows.dll files on your machine, temporarily move or rename them leaving only the MyApp\platforms\qwindows.dll and see what happens.

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    Code_ReaQtor
                    wrote on last edited by
                    #9

                    actually I only have one msvc2012 build (which I build myself) of Qt5

                    ...I also installed the Qt 5.0.0 VS2010 downloadable here which I think will be of no effect since they are of different VS variant. No other Qt5 on my machine.

                    Are there any other "hidden" parameters or settings done by Qt Creator before running an app within it? App works when creator is used though.

                    Please visit my open-source projects at https://github.com/Code-ReaQtor.

                    1 Reply Last reply
                    0
                    • Chris KawaC Offline
                      Chris KawaC Offline
                      Chris Kawa
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      [quote author="Code_ReaQtor" date="1358078242"]which I think will be of no effect since they are of different VS variant.[/quote]
                      This may actually be the problem.
                      If your (VS2012) app picks up VS2010 plugins they might be recognized but fail to load. Make tripple sure you didn't mix the dlls and that none of the qt dlls are seen system-wide (like in the PATH or placed in some system directory).

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        Code_ReaQtor
                        wrote on last edited by
                        #11

                        [quote author="Krzysztof Kawa" date="1358078537"]
                        If your (VS2012) app picks up VS2010 plugins they might be recognized but fail to load. Make tripple sure you didn't mix the dlls and that none of the qt dlls are seen system-wide (like in the PATH or placed in some system directory).
                        [/quote]

                        I make sure no Qt stuffs were included in my PATH. It is a bad habit to do that.

                        Please visit my open-source projects at https://github.com/Code-ReaQtor.

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

                          It MIGHT be an issue with your VS 2012 build. I don't have VS 2012 installed, so I can't investigate for you, sorry. Are you willing to try a VS 2010 build (or "MinGW":http://qt-project.org/forums/viewthread/23002/), and see if that works?

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

                          1 Reply Last reply
                          0
                          • Chris KawaC Offline
                            Chris KawaC Offline
                            Chris Kawa
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            I've got exactly the same setup here: VS2010 from Qt download pages and personally compiled VS2012 version, but everything seems to work out of the box.

                            Another thing to try would be to use Profiling option in Dependency Walker. In the profiling window you can select "Use full paths when logging file names". The output is somewhat messy but you can use find(ctrl+f) to find qwindows.dll and other modules and check from what path they are actually loaded and why are they doubled.

                            1 Reply Last reply
                            0
                            • C Offline
                              C Offline
                              Code_ReaQtor
                              wrote on last edited by
                              #14

                              @JKSH
                              Can't do with VS2010, I have problems installing VS2010 in my computer since it won't compile even an ordinary VS2010 app. Got errors like "oldnames.lib" something errors. Found out header files weren't installed. Tried and tried but never solved it ... even the M$ forum can't help... so I removed it. Only have VS2008 and VS2012 on my machine.

                              But for the mingw, I think I will take a look at that since mingw is ok with my machine. Thanks

                              @Krzysztof
                              I will recheck dependency walker. Thanks

                              Please visit my open-source projects at https://github.com/Code-ReaQtor.

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                soroush
                                wrote on last edited by
                                #15

                                Did you set QT_PLUGIN_PATH environment variable ?

                                1 Reply Last reply
                                0
                                • C Offline
                                  C Offline
                                  Code_ReaQtor
                                  wrote on last edited by
                                  #16

                                  [quote author="soroush" date="1358092375"]Did you set QT_PLUGIN_PATH environment variable ? [/quote]

                                  NO....

                                  Please visit my open-source projects at https://github.com/Code-ReaQtor.

                                  1 Reply Last reply
                                  0
                                  • P Offline
                                    P Offline
                                    Peppy
                                    wrote on last edited by
                                    #17

                                    Well, in my case, I have been using only the correct libraries, whether I have been building Qt (MSVC 2012) or using downloaded installation of Qt (MSVC 2010).

                                    I dont have Qt in PATH. Seems like to be a very strange DLL Hell problem...

                                    1 Reply Last reply
                                    0
                                    • P Offline
                                      P Offline
                                      Peppy
                                      wrote on last edited by
                                      #18

                                      [quote author="JKSH" date="1358040589"]Very strange. Some questions:

                                      I presume it says Failed to load platform plugin "windows"., and not another plugin; is that correct?

                                      What's your OS? What many bits?

                                      Did you download the precompiled Qt 5.0.0, or build it yourself?

                                      Is Qt 5 in your PATH?

                                      Did you copy the other DLLs (e.g. Qt5Core.dll) into your application folder?[/quote]

                                      Yes you are right. But it says that plugins are available... I really dont understand what is going on...

                                      • Windows 7 Professional x64 bit.
                                      • I have been using both of them but not at once.
                                      • Qt is not in my environment
                                      • Yes, I did.
                                      1 Reply Last reply
                                      0
                                      • JKSHJ Offline
                                        JKSHJ Offline
                                        JKSH
                                        Moderators
                                        wrote on last edited by
                                        #19

                                        I'm quite lost here, to be honest. :-/

                                        Try running your program from within CDB -- it will show you a list of DLLs that are being loaded, and it just might provide a clue.

                                        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
                                          Peppy
                                          wrote on last edited by
                                          #20

                                          Well, I have dumped the library paths but the only one was:
                                          @C:/Qt/5.0.0/msvc2010/plugins@

                                          What makes no sense...

                                          When I run it from QtCreator, it works, but not as a stand-alone...

                                          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