Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Problem with deploying Qt/C++ desktop app that uses Qt Charts library

    General and Desktop
    5
    7
    2660
    Loading More Posts
    • 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.
    • W
      whatisjeff last edited by

      Hello, I'm having trouble deploying a Qt/C++ application to another computer. There seems to be a problem with using the charts library. In one test application, it doesn't use that library, so it doesn't include the Qt5Charts.dll, and it works perfectly. The other one does, and it gives the message "could not find or load the Qt platform plugin 'windows'" even though the qwindows.dll is with the application. Please help!

      1 Reply Last reply Reply Quote 0
      • C
        ChrisW67 last edited by

        The qwindows.dll should be in a sub-directory "platforms" adjacent to the application executable. The error has nothing to do with Qt Charts.

        1 Reply Last reply Reply Quote 0
        • podsvirov
          podsvirov last edited by

          Have you read the documentation on deployment of applications?
          Read there: "Deploying Qt Applications":http://doc.qt.io/qt-5/deployment.html

          1 Reply Last reply Reply Quote 0
          • JKSH
            JKSH Moderators last edited by

            [quote author="Konstantin Podsvirov" date="1420876109"]Have you read the documentation on deployment of applications?
            Read there: "Deploying Qt Applications":http://doc.qt.io/qt-5/deployment.html[/quote]...and also the following wiki: http://qt-project.org/wiki/Deploy_an_Application_on_Windows

            !http://i.imgur.com/S582DlV.png(DLL locations)!

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

            1 Reply Last reply Reply Quote 0
            • W
              whatisjeff last edited by

              Yes, I should mention that qwindows.dll is in a "platforms" directory. When the executable is opened, an error like this pops up:

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

              Platforms available: "windows"

              Reinstalling the application may fix this problem
              "

              And yes I've read both of those guides

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                Hi and welcome to devnet,

                Maybe a silly question but, did you build your library in release mode ?

                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 Reply Quote 0
                • JKSH
                  JKSH Moderators last edited by

                  [quote author="whatisjeff" date="1420919498"]"This application failed to start because it could not find or load the Qt platform plugin "windows".

                  Platforms available: "windows"[/quote]Qt said that the "windows" platform is available but can't be loaded. That usually means that one or more of the dependencies of qwindows.dll is missing.

                  Which steps did you follow under Initial deployment (Quick and dirty) in http://qt-project.org/wiki/Deploy_an_Application_on_Windows ?

                  Another possible reason (though I'm less sure about this one) is that you used the wrong version of the qwindows.dll or one of its dependencies. Make sure all of your DLLs match your kit (e.g. if you compiled your application with 32-bit MinGW 4.9.1, then make sure you get all your DLLs from _...\mingw491_32\bin_ and _...\mingw491_32\plugins_).

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

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post