[SOLVED]Failed to load platform plugin "windows"
-
Hello,
I have a similar problem. I've read some stuff, but nothing works for me.
I've deploy my application with windeployqt (Readed here and here). On my PC the solution works fine. Another PC has 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.
Following steps I've tried:
-
Created with platforms sub-folder. The error message was extended in this case to:
This application failed to start because it could not find or load the Qt platform plugin "windows". Available platform plugins are: minimal, offscreen, windows, windows., Reinstalling the application may fix this problem.
-
Used dependency walker for checking the dlls.
IESHIMS.DLL -> also missing on my PC SHLWAPI.DLL IEFRAME.DLL -> this one is the deley-load depenceny (see error message below) Warning: At least one delay-load dependency module was not found. Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
Copying the ieframe.dll from C:\Windows\System32 to release folder will also not fix it.
-
Checked this. No success.
-
Trying to add to main.cpp
QCoreApplication::addLibraryPath("./"); QCoreApplication::addLibraryPath("./platforms");
No success.
-
Also checked this thread.
-
Also tried to add libEGL.dll to the package. No success.
I developing on Windows XP with Qt 5.4 and MinGW 4.91 32 bit compiler. Some test PC's are Windows 7.
Has anyone hints for me? The message "no windows plugin. Available plugins windows, windows" is also strange.
-
-
Hi,
@Saved said:
The message "no windows plugin. Available plugins windows, windows" is also strange.
That means your program found the qwindows.dll plugin, but could not load it. Usually, it's because a dependency is missing. Follow https://wiki.qt.io/Deploy_an_Application_on_Windows carefully.
-
@Saved said:
Thank you JKSH for your fast reply.
I've pointed out that my app works fine on all systems with platforms sub-folder expect my usual test environment in a VM.
Regards.
You're welcome.
I'm not quite sure where you're at now: Are you still facing the same problem? Have you followed the wiki instructions for your VM?
-
I have tried all these solutions on a new windows 10 machine and nothing has worked yet. I have migrated some old Clipper code to Harbour with QT. I was able to compile and run it fine on an XP machine. When I moved the executable folder from the XP machine to the Win10 machine, the program still ran fine. After I compile it on the Win 10 machine, it no longer runs. Obviously, something in the build process is not working correctly.
-
Hi
" After I compile it on the Win 10 machine, it no longer runs. "It's a bit unclear what stopped working. When you compile
on win 10, it will not even run in Creator?
Or do you mean run from deploy folder?
(standalone)