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. Cannot run executable
Qt 6.11 is out! See what's new in the release blog

Cannot run executable

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 612 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.
  • B Offline
    B Offline
    bam500
    wrote on last edited by bam500
    #1

    Hi,

    I am trying to run my application but I get this error :

    This application failed to start because it could not find or load the Qt platform plugin "windows" in "". Reinstalling the application may fix this problem.

    I have in my app folder the following structure :

    • app.exe
    • plugins
      • platforms
        • qminimald.dll
        • qoffscreend.dll
        • qwindowsd.dll
      • styles
        • qwindowsvistastyled.dll

    I then run Dependency Walker and get this :

    0_1551974636398_Capture.PNG

    It looks like my application cannot find all the windows DLLs. But I don't know how to fix it. Any idea ?

    EDIT : I am running it on Windows 10 with Qt 5.10.1

    Thanks & Regards

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      The plugins directory is wrong - see https://doc.qt.io/qt-5/windows-deployment.html#qt-plugins :

      All Qt GUI applications require a plugin that implements the Qt Platform Abstraction (QPA) layer in Qt 5. For Windows, the name of the platform plugin is qwindows.dll. This file must be located within a specific subdirectory (by default, platforms) under your distribution directory. Alternatively, it is possible to adjust the search path Qt uses to find its plugins, as described below.

      And I would suggest you using windeployqt instead trying to copy all needed Qt dlls by yourself (which, obviously doesn't work very well).

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2

      • Login

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