Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 platforms plugins ?
Qt 6.12 LTS is out! See what's new in the release blog

Qt5 platforms plugins ?

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

                Well, I have found solution in copying also libEGL.dll or libEGLd.dll (depends on what type of building do you run!) into the root application library...what a freaking mistake!

                Thanks to: http://qt-project.org/forums/viewthread/21269

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

                  [quote author="Peppy" date="1358179576"]Well, I have found solution in copying also libEGL.dll or libEGLd.dll (depends on what type of building do you run!) into the root application library...what a freaking mistake!

                  Thanks to: http://qt-project.org/forums/viewthread/21269[/quote]

                  Wow! Mine worked too! Thanks

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

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goblincoding
                    wrote on last edited by
                    #23

                    Solved it for me as well.

                    http://www.goblincoding.com

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #24

                      Just wanted to say I had this issue as well. Solve for me. Found through google so I figured I'd bump it.

                      1 Reply Last reply
                      0
                      • I Offline
                        I Offline
                        ivaneck
                        wrote on last edited by
                        #25

                        copy the qwindows.dll from qtdir/plugins/platform to your application_directory/platform and voila it solves the problem.

                        1 Reply Last reply
                        0
                        • ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #26

                          Adding libEGL.dll worked for me too. Was long for me to find the solution so I figured I'd bump it too.

                          1 Reply Last reply
                          0
                          • P Offline
                            P Offline
                            Ph0t0n
                            wrote on last edited by
                            #27

                            I was getting that exact same "failed to load" error, however, I didn't compile my own binaries - I used the ones from the softwareforge project qt-x64 : http://sourceforge.net/projects/qtx64/ .

                            It turns out that they bundle a utility in there called qtbinpatcher.exe that patches the binaries where the paths have been hardcoded in. Once I ran that everything worked.

                            Is it just me, or does hardcoding an absolute path into the binaries like that seem like horrible idea? What were they thinking?

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

                              [quote author="Ph0t0n" date="1392352947"]I was getting that exact same "failed to load" error, however, I didn't compile my own binaries - I used the ones from the softwareforge project qt-x64 : http://sourceforge.net/projects/qtx64/ .

                              It turns out that they bundle a utility in there called qtbinpatcher.exe that patches the binaries where the paths have been hardcoded in. Once I ran that everything worked.

                              Is it just me, or does hardcoding an absolute path into the binaries like that seem like horrible idea? What were they thinking?[/quote]I agree that it is a horrible idea. Unfortunately, it's not something that's easy to undo -- so we'll have to deal with it for now.

                              Anyway, welcome to the Qt Dev Net! I'm glad you found a solution to your problem. Thank you for sharing your solution.

                              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
                              • Unsolved