windeployqt doesn't deploy qwindowsd.dll for a debug application

拟墨画扇 提交于 2020-04-16 05:55:07

问题


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 --debug on the windeployqt command line. That failed because Qt5Coredd.dll could not be found (note the double d's).
  • Verifying that no Qt plugin related environment variables are set.
  • Checked PATH to make sure it doesn't contain any folder with a platforms directory.

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!