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.
  • B Offline
    B Offline
    Bear35645
    wrote on 10 Mar 2015, 16:11 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
    • S Offline
      S Offline
      sneubert
      wrote on 10 Mar 2015, 16:16 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?

      B 1 Reply Last reply 10 Mar 2015, 16:34
      1
      • S sneubert
        10 Mar 2015, 16:16

        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?

        B Offline
        B Offline
        Bear35645
        wrote on 10 Mar 2015, 16:34 last edited by
        #3

        @sneubert Thanks. That was the help I needed.

        1 Reply Last reply
        0

        2/3

        10 Mar 2015, 16:16

        • Login

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