"This application failed to start because..." in Qt5.7.0



  • After debugging my program using Qt 5.7.0 in Windows (with MinGW 5.3.0 32 bit), I compiled Release version to use it on a different PC. Insert all requested dll's, but on the first PC (where I developped my program) all is ok, while in the new the following error message appears:
    "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 try to copy "qwindows.dll" on the same dir where I place my executable: nothing to do.
    Make a subdir called "platform" with "qwindows.dll" in: nothing to do.
    Copy all platforms (qwindows.dll, qwindowsd.dll, qoffscreen.dll, qoffscreend.dll, qminimal.dll, qminimald.dll) in the same folder where I place executable: nothing to do.
    How to solve it?


  • Lifetime Qt Champion

    Hi,

    To simplify deployment you can use the windeployqt helper.

    You can also take a look at this wiki entry about Windows deployment.



  • @SGaist Done! Solved!!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.