Qt Forum

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

    Can not find Windows platform

    General and Desktop
    2
    3
    797
    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.
    • Bear35645
      Bear35645 last edited by

      I am trying to distribute the application I developed. I know I have to include a sub folder named platforms with the proper Windows DLLs. I also have added lines in my main function as follows:
      QCoreApplication::addLibraryPath("./");
      QCoreApplication::addLibraryPath("./platforms");

      However, I still get the error "This application failed to start because it could not find or load the Qt platform plugin 'Windows'."

      "Available platform plugins are: minimal, offscreen, windows."

      The DLLs are in the sub folder, however for some reason the application does not seem to find them.

      Thanks,
      Bear35645

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

        Did you try to use the windeployqt tool (http://doc.qt.io/qt-5/windows-deployment.html) to copy the right dependencies into your applications folder?

        Bear35645 1 Reply Last reply Reply Quote 1
        • Bear35645
          Bear35645 @sneubert last edited by

          @sneubert Thanks. That was the help I needed.

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