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. Could not find or load the Qt platform plugin "windows"
QtWS25 Last Chance

Could not find or load the Qt platform plugin "windows"

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 5.2k 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.
  • R Offline
    R Offline
    Romaniy
    wrote on last edited by
    #1

    Hello everyone!

    I have just compiled new application, which works perfectly well.
    But when i tried change library path inside my application, I'll saw next problem during starting my program:

    This application failed to start because it could not find or load the Qt platform plugin "windows".

    Application works normal, when I don't change library path.
    I want, that my application works in any computer, without installing Qt library.
    I added library in this way:

    @ a.addLibraryPath(a.applicationDirPath() + "/plugins/");@

    "plugins" directory exists in this path.
    When I started application with old library path I'll saw next:

    ("D:/build-A_1-Desktop_Qt_5_1_1_MinGW_32bit-Release/release/plugins", "C:/Qt/Qt5.1.1/5.1.1/mingw48_32/plugins", "D:/build-A_1-Desktop_Qt_5_1_1_MinGW_32bit-Release/release")

    But when I renamed this directory "C:/Qt/Qt5.1.1/5.1.1/mingw48_32/plugins", my application stopped working with the same error.

    Please help me:)

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      and where is your platform plugin located?
      You need to preserve Qt's plugin directory structure . Meaning you just can set the base-path for plugins, which contains the subfolders "imageformats", "platforms", ... and the respective plugin libraries then.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Romaniy
        wrote on last edited by
        #3

        raven-worx, thank for your response)

        I copied directory plugins with all subdirectories from C:/Qt/Qt5.1.1/5.1.1/mingw48_32/plugins to my application directory.
        My plugin directory consists:

        Directory of D:\build-A_1-Desktop_Qt_5_1_1_MinGW_32bit-Release\release\plugins

        25.11.2013 12:10 <DIR> .
        25.11.2013 12:10 <DIR> ..
        22.11.2013 13:34 <DIR> accessible
        22.11.2013 13:34 <DIR> bearer
        22.11.2013 13:34 <DIR> designer
        22.11.2013 13:34 <DIR> iconengines
        22.11.2013 13:34 <DIR> imageformats
        22.11.2013 13:34 <DIR> mediaservice
        22.11.2013 13:34 <DIR> platforms
        22.11.2013 13:34 <DIR> playlistformats
        22.11.2013 13:34 <DIR> printsupport
        22.11.2013 13:34 <DIR> qml1tooling
        22.11.2013 13:34 <DIR> qmltooling
        22.11.2013 13:34 <DIR> sensorgestures
        22.11.2013 13:34 <DIR> sensors
        22.11.2013 13:34 <DIR> sqldrivers
        0 File(s) 0 bytes
        16 Dir(s) 11 077 955 584 bytes free

        But it didn't help:(

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          IIRC, you should move the platforms folder from plugins to release

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Romaniy
            wrote on last edited by
            #5

            Yes, it's help.
            Thanks.

            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