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 not find Windows platform
Forum Updated to NodeBB v4.3 + New Features

Can not find Windows platform

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.0k Views 2 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.
  • Bear35645B Offline
    Bear35645B Offline
    Bear35645
    wrote on last edited by
    #1

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

      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?

      Bear35645B 1 Reply Last reply
      1
      • sneubertS sneubert

        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?

        Bear35645B Offline
        Bear35645B Offline
        Bear35645
        wrote on last edited by
        #3

        @sneubert Thanks. That was the help I needed.

        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