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. Problem with deploying Qt/C++ desktop app that uses Qt Charts library
QtWS25 Last Chance

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

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

    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
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      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
      0
      • podsvirovP Offline
        podsvirovP Offline
        podsvirov
        wrote on last edited by
        #3

        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
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          [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
          0
          • W Offline
            W Offline
            whatisjeff
            wrote on last edited by
            #5

            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
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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
              0
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7

                [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
                0

                • Login

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