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. Can't load windows plugin
Qt 6.11 is out! See what's new in the release blog

Can't load windows plugin

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 3.1k 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.
  • Q Offline
    Q Offline
    Qatto
    wrote on last edited by
    #1

    I was able to build my application but can't deploy it anywhere else other than the development pc.
    The application produces the following output on crashing:

    @Problem Event Name: APPCRASH
    Application Name: theApp.exe
    Application Version: 0.0.0.0
    Application Timestamp: 526faf5c
    Fault Module Name: Qt5Core.dll
    Fault Module Version: 5.0.1.0
    Fault Module Timestamp: 51082eed
    Exception Code: 40000015
    Exception Offset: 0000dc55@

    I run dependency walker on a new machine and profiled the application which produced this error yet my app includes qwindows.dll in the platforms directory.

    @LoadLibraryW("C:\program files\theapp\platforms\qwindows.dll") returned NULL. Error: The specified procedure could not be found (127).
    Failed to load platform plugin "windows". Available platforms are:
    windows@

    Am wondering why it's failing to find qwindows.dll

    Web/Desktop Developer

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zibicoder
      wrote on last edited by
      #2

      Try this:
      @LoadLibraryW("C:\program files\theapp\platforms\qwindows.dll")@
      or:
      @LoadLibraryW("C:/program files/theapp/platforms/qwindows.dll")@

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Qatto
        wrote on last edited by
        #3

        Thanks zibicoder for the reply. Should I write this in the applications source code, and where should I place it?

        Web/Desktop Developer

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zibicoder
          wrote on last edited by
          #4

          On the clear machine (without Qt instalation) you should put your app in one folder with all *.dll's needed (e.g. QtGui.dll, QtWidgets.dll, etc). In this same folder you should put folder "platforms" with qwindows.dll, folder printsupport with its dll's and so on). I dont know, what is your app and which libraries of Qt it needs exactly.

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            Qatto
            wrote on last edited by
            #5

            Yes, that's what I have been doing all along. But the executable can't load it from the platforms directory.

            Web/Desktop Developer

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              zibicoder
              wrote on last edited by
              #6

              Sorry, i don't understood your firs post. The line "LoadLibraryW(..." it is message from Dependency Walker, isn't it? I have no idea, why it dont work. Maby it is problem with location your folder with app on C:\ (problem UAC in windows?) I utilize method desribed below and i havn't problems yet, but my default localisation of apps is logical disk d:\programms. Let search forums for similar threads, perhaps you'll find the ansver.
              Best regards.

              1 Reply Last reply
              0
              • mrdebugM Offline
                mrdebugM Offline
                mrdebug
                wrote on last edited by
                #7

                In the past I have had the same problem (using mingw).
                If you want you can download this package
                http://www.denisgottardello.it/BackupTo/BackupTo.php
                and look at the dlls and plugins. Remember that you have to specify the plusing location using qt.conf special file.

                Need programmers to hire?
                www.labcsp.com
                www.denisgottardello.it
                GMT+1
                Skype: mrdebug

                1 Reply Last reply
                0
                • Q Offline
                  Q Offline
                  Qatto
                  wrote on last edited by
                  #8

                  Dependency walker indicates that the fault is coming from the qt_plugin_query_metadata function inside qwindows.dll. So the plugin is seen by the application but it cannot be loaded. What causes this?

                  Web/Desktop Developer

                  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