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. Qt platform plugin found yet not found

Qt platform plugin found yet not found

Scheduled Pinned Locked Moved Installation and Deployment
windowsplugindlldeployment
26 Posts 5 Posters 12.5k 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.
  • A Offline
    A Offline
    aran
    wrote on 24 Jul 2015, 04:23 last edited by aran
    #11

    The dll LIBGCC_S_SJLJ-1.DLL exists in the exe folder, so it should find it...

    Tomorrow, I'll try to get another distro set up in VirtualBox (prob OpenSUSE, they have all mingw packages in a repository), maybe I get better results with slightly different versions of stuff. They also seem to still have mingw32 in their repositories.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      aran
      wrote on 24 Jul 2015, 17:19 last edited by aran
      #12

      Okay, so I installed OpenSUSE in VirtualBox, installed mingw32, compiled my app, copied the exe and all the dll's to Windows 7, double clicked the exe - aaaaand:

      It crashes right away, without any error message :/

      The problem seems to be once again in the qwindows.dll, because I do get the same error message as before when I remove the platforms subfolder... If it helps, I uploaded the qwindows.dll to the same file as before: http://photoqt.org/qwindows.dll

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Leonardo
        wrote on 24 Jul 2015, 17:23 last edited by
        #13

        So you've just compile Qt's source and your app with MinGW, without getting any error? It compiles successfully, but you cannot run it, right?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          aran
          wrote on 24 Jul 2015, 17:26 last edited by
          #14

          Well, compiling Qt from source would be the next step. For mingw32 I used the rpm's that are in one of OpenSUSE's repository. My app, however, compiles and links without errors, I just cannot run it.

          J 1 Reply Last reply 25 Jul 2015, 01:56
          0
          • A aran
            24 Jul 2015, 17:26

            Well, compiling Qt from source would be the next step. For mingw32 I used the rpm's that are in one of OpenSUSE's repository. My app, however, compiles and links without errors, I just cannot run it.

            J Offline
            J Offline
            JKSH
            Moderators
            wrote on 25 Jul 2015, 01:56 last edited by
            #15

            @aran said:

            Well, compiling Qt from source would be the next step. For mingw32 I used the rpm's that are in one of OpenSUSE's repository. My app, however, compiles and links without errors, I just cannot run it.

            There are many different "builds" of MinGW out there. Unfortunately, not all are compatible with each other. If you use a build that is incompatible with the one which was used to compile Qt, then you will run into trouble.

            See https://wiki.qt.io/MinGW to help you find a compatible build.

            Alternatively, use the same copy of MinGW to compile Qt AND your app.

            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
              aran
              wrote on 25 Jul 2015, 03:30 last edited by
              #16

              Well, of course I used the same copy to compile both Qt and my app. However, building the base Qt5 package (the one that is responsible for the qwindows.dll) from source didn't change anything...

              Thanks for the link! I will give that a go with a fresh setup, however, right now I'm unable to download anything from sourceforge, it always throws me back to the file overview (tried it in different browsers and OS's)... I guess I'll have to try later as there doesn't seem to be a different mirror :/

              J 1 Reply Last reply 25 Jul 2015, 12:05
              0
              • A aran
                25 Jul 2015, 03:30

                Well, of course I used the same copy to compile both Qt and my app. However, building the base Qt5 package (the one that is responsible for the qwindows.dll) from source didn't change anything...

                Thanks for the link! I will give that a go with a fresh setup, however, right now I'm unable to download anything from sourceforge, it always throws me back to the file overview (tried it in different browsers and OS's)... I guess I'll have to try later as there doesn't seem to be a different mirror :/

                J Offline
                J Offline
                JKSH
                Moderators
                wrote on 25 Jul 2015, 12:05 last edited by
                #17

                @aran said:

                Well, of course I used the same copy to compile both Qt and my app. However, building the base Qt5 package (the one that is responsible for the qwindows.dll) from source didn't change anything...

                Hmm... in that case, it's time to try everything. Follow the instructions under "Initial deployment (Quick and dirty)" at http://wiki.qt.io/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
                • A Offline
                  A Offline
                  aran
                  wrote on 26 Jul 2015, 02:41 last edited by
                  #18

                  Okay, I got a partial success:

                  I downloaded the Qt installer for Windows, and during installation selected the right mingw compiler version (as per https://wiki.qt.io/MinGW). Now, I'm able to compile my app in QtCreator and it also runs. Well kinda. At first, it ran (i.e., it produced command line output and was shown as 'running') but the main window wasn't visible. Besides the expected output on the command line, I got a bunch of OpenGL warnings.
                  After installing Direct3D support in VirtualBox and enabling it in the settings, I'm now able to start the app, though nothing else really works. But as I found online, this is due to VirtualBox not having proper support of OpenGL. That means, that I will have to pass a completely untested installer to my users, but at least there's something.

                  I will try to get a proper cross compiler on Linux running, using the right mingw version and installing qt entirely from source. I know now, that it should work, so hopefully that'll be successful! I'll report back...

                  Thanks to everybody who helped me so far!

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    Leonardo
                    wrote on 26 Jul 2015, 03:07 last edited by
                    #19

                    Hi. I have a Qt Quick application that runs perfectly inside VirtualBox. You should enable ANGLE on Qt. It's much more reliable when deploying for Windows.

                    http://doc.qt.io/qt-5/windows-requirements.html#dynamically-loading-graphics-drivers

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      aran
                      wrote on 26 Jul 2015, 04:19 last edited by
                      #20

                      Hm, that's strange, that doesn't work for me... Although at your link it says that "As of Qt 5.5 this [dynamic opengl] is the configuration used by the official, pre-built binary packages of Qt.", if I set the QT_OPENGL environment variable to 'angle', my app still crashes...

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        JKSH
                        Moderators
                        wrote on 26 Jul 2015, 04:20 last edited by
                        #21

                        @aran said:

                        my app still crashes...

                        1. Can you build and run your app natively in Linux?
                        2. Can you deploy a simple "Hello World" program to Windows?

                        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
                          aran
                          wrote on 26 Jul 2015, 04:49 last edited by
                          #22
                          1. My app works just fine in Linux, that's where I'm developing it and that's where it's used mostly.

                          2. Good question, I give that a go tomorrow (it's too late for that today... zzzzz)

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            aran
                            wrote on 1 Aug 2015, 12:36 last edited by aran 8 Jan 2015, 12:37
                            #23

                            Sorry for the late reply, had a crazy week...

                            But I eventually did manage to get my app working on Windows!! I had a few subfolders from the lib/qt/qml folder missing. Two slightly odd things I noticed:

                            1. If I don't include Qt5Multimedia.dll and Qt5MultimediaQuick_p.dll, then my app crashes, but it doesn't complain about it missing (one of the reasons it took me a while to figure that out). Also dependency walker didn't show me that one as 'missing'...
                            2. If some of the *.a files are present, they can cause trouble. In particular in the case of the platforms/ subfolder. If I don't remove the qwindows.a file and thus both qwindows.{a,dll} are in there, then I get the error message I posted in my initial post. Could it be, that for some reason, that Qt (when attempting to load the platform plugin) only considers the filename without the ending? Would be weird, but it kinda seems like that...

                            Anyways, it's working just fine now. Well, almost: I can't display gif or tiff images in Windows yet. Although, the imageformats/ subfolder contains the dll plugins for both of them. I tried to inspect them (using 'nm' on Linux) and didn't spot any missing dll dependency. Anybody any thoughts what I could try?

                            J 1 Reply Last reply 1 Aug 2015, 13:26
                            0
                            • A aran
                              1 Aug 2015, 12:36

                              Sorry for the late reply, had a crazy week...

                              But I eventually did manage to get my app working on Windows!! I had a few subfolders from the lib/qt/qml folder missing. Two slightly odd things I noticed:

                              1. If I don't include Qt5Multimedia.dll and Qt5MultimediaQuick_p.dll, then my app crashes, but it doesn't complain about it missing (one of the reasons it took me a while to figure that out). Also dependency walker didn't show me that one as 'missing'...
                              2. If some of the *.a files are present, they can cause trouble. In particular in the case of the platforms/ subfolder. If I don't remove the qwindows.a file and thus both qwindows.{a,dll} are in there, then I get the error message I posted in my initial post. Could it be, that for some reason, that Qt (when attempting to load the platform plugin) only considers the filename without the ending? Would be weird, but it kinda seems like that...

                              Anyways, it's working just fine now. Well, almost: I can't display gif or tiff images in Windows yet. Although, the imageformats/ subfolder contains the dll plugins for both of them. I tried to inspect them (using 'nm' on Linux) and didn't spot any missing dll dependency. Anybody any thoughts what I could try?

                              J Offline
                              J Offline
                              JKSH
                              Moderators
                              wrote on 1 Aug 2015, 13:26 last edited by
                              #24

                              @aran said:

                              I had a few subfolders from the lib/qt/qml folder missing.

                              ...

                              I can't display gif or tiff images in Windows yet. Although, the imageformats/ subfolder contains the dll plugins for both of them. I tried to inspect them (using 'nm' on Linux) and didn't spot any missing dll dependency. Anybody any thoughts what I could try?

                              As I said in my previous post, follow the instructions under "Initial deployment (Quick and dirty)" at http://wiki.qt.io/Deploy_an_Application_on_Windows

                              Plugins are loaded at runtime, and they won't be detected by dependency checking tools.

                              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
                                aran
                                wrote on 2 Aug 2015, 13:00 last edited by aran 8 Feb 2015, 13:01
                                #25

                                @JKSH said:

                                As I said in my previous post, follow the instructions under "Initial deployment (Quick and dirty)" at http://wiki.qt.io/Deploy_an_Application_on_Windows

                                Plugins are loaded at runtime, and they won't be detected by dependency checking tools.

                                Well, the way it is described in the wiki is how I usually start, but that actually didn't work at all, it crashes with the error mentioned in my first post.
                                Though, I guess, that the problem might have been with the *.a files, that seem to cause troubles (even though the shouldn't). I'll try to do the same thing again, and this time I'll delete all the *.a files before testing anything...

                                1 Reply Last reply
                                0
                                • A aran
                                  23 Jul 2015, 18:03

                                  Hi guys,

                                  I have in the past successfully deployed an app on Windows, however, as I was trying to compile an updated version of my app, I ran into a problem I couldn't solve:
                                  First, the app compiles fine, no linking errors or anything. I copied all the required DLL's into the same folder as the exe-file, and added the subfolder sqldrivers/, imageformats/, and platforms/ with all of their content.

                                  However, whenever I attempt to start my application I get the following error message:

                                  The Application failed to start because it could not find or load the Qt platform plugin "windows".
                                  Available platform plugins are: minimal, windows
                                  Reinstalling the application may fix this problem.
                                  

                                  Searching the internet, I found numerous forum posts where people ran into this problem, however, they usually forgot to add the platforms subfolder. In my case, the "windows" plugin is found, but for some reason fails to load.

                                  I compiled my app using the mingw-w64 compiler (I cross-compiled from Linux). I had also tried to compile my app using Cygwin on Windows, but ran into the equivalent error (only that there the missing plugin was called "xcb", which was also listed as available).

                                  I'm really out of ideas what to try. All the required dll's are there, but the platform dll doesn't seem to be loaded although it is found... Anybody any idea what I could try?

                                  Compiler: mingw-w64 (on ArchLinux)
                                  Qt Version: 5.4.2
                                  Tested target OS: Windows 7, 64Bit

                                  C Offline
                                  C Offline
                                  cookie-jar
                                  Banned
                                  wrote on 6 Aug 2015, 08:36 last edited by tekojo 8 Jun 2015, 10:24
                                  #26

                                  What do you mean by "other dependency for qwindows.dll"? I only have that one, in the platforms subfolder. Copying it into the exe folder doesn't change anything...

                                  1 Reply Last reply
                                  0

                                  20/26

                                  26 Jul 2015, 04:19

                                  • Login

                                  • Login or register to search.
                                  20 out of 26
                                  • First post
                                    20/26
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Search
                                  • Get Qt Extensions
                                  • Unsolved