First of all, to prevent duplicate reports I have tried multiple solutions given here, here, here, here and here.
I am using Qt 5.5.1 with Visual Studio 2012 and developed my app on Windows 10 x64 (not using Qt Creator). Application is compiled in release mode.
Actually, my application is working on my PC, without any issues and the only libraries I need in my directory are:
Qt5Core.dll
Qt5Gui.dll
Qt5WinExtras.dll
Qt5Widgets.dll
Qt5Network.dll
msvcp110.dll
msvcr110.dll
Now, when I try to launch my application on fresh installation of Windows 7 x86 I am getting the following error message:
This application failed to start because it could not find or load the Qt platform plugin "windows".
Reinstalling the application may fix this problem.
Now I can't get rid of it. According to the previously asked questions it can be a issue with qwindows.dll
file (or more precisely with application couldn't locate it), first of all I made a deploy of my release directory like this:
[..]\msvc2012\bin>windeployqt.exe <PATH>
It has generated all files that are needed for my application to launch, including platforms/qwindows.dll
so I have simply copied all of them to Windows 7 directory without any effect - error still occurs.
I have also tried to manually copy a qwindows.dll
from the msvc2012\plugins\platforms
- no effect,
Last step I did was a inspection of my application in the Dependency Walker - suprisingly, there is no qwindows.dll
related dependency:
So I am out of ideas now, what is the problem here?
This is what I do to deploy QOwnNotes (Qt5) under Windows: https://github.com/pbek/QOwnNotes/blob/develop/appveyor.yml
I hope that helps a little...