问题
I'm trying to use windeployqt.exe (Qt 5.13.2) to deploy dlls for a debug application generated by CMake 3.16. All the dlls are deployed correctly except for the platform plugin dll, which deploys qwindows.dll instead of qwindowsd.dll and results in the following error when I try to run the executable:
This application failed to start because no Qt platform plugin could be initialized.
So far, I've tried:
- Specifying
--debugon thewindeployqtcommand line. That failed becauseQt5Coredd.dllcould not be found (note the double d's). - Verifying that no Qt plugin related environment variables are set.
- Checked
PATHto make sure it doesn't contain any folder with aplatformsdirectory.
If I copy qwindowsd.dll manually, everything works fine. However I'd really like to figure out what I'm doing wrong with windeployqt.
来源:https://stackoverflow.com/questions/59828611/windeployqt-doesnt-deploy-qwindowsd-dll-for-a-debug-application