首页 > 解决方案 > Windeployqt 错误:找不到平台插件

问题描述

我正在尝试部署我制作的程序,以便我可以将 exe 发送给我的老师。起初,我无法让 exe 在 qt 之外工作。感谢我在这里找到的答案,我将文件夹plugins/platform和一堆 dll 放在了我的 exe 所在的发布文件夹中,现在它可以工作了。但我不想需要所有这些文件,我只想要 exe 所以,我打开 cmd,我转到 windeploqt.exe 的 plath 并输入: windeployqt.exe C:\Users\pedro\Documents\build-Ejercicio_07-Desktop_Qt_5_14_0_MinGW_32_bit-Release\Ejercicio_07.exe但我总是得到同样的错误:

C:\Qt\Qt5.14.0\5.14.0\mingw73_32\bin>windeployqt.exe C:\Users\pedro\Documents\build-Ejercicio_07-Desktop_Qt_5_14_0_MinGW_32_bit-Release\Ejercicio_07.exe
C:\Users\pedro\Documents\build-Ejercicio_07-Desktop_Qt_5_14_0_MinGW_32_bit-Release\Ejercicio_07.exe 32 bit, release executable
Direct dependencies: Qt5Core Qt5Gui Qt5Widgets
All dependencies   : Qt5Core Qt5Gui Qt5Widgets
To be deployed     : Qt5Core Qt5Gui Qt5Widgets
Unable to find the platform plugin.

C:\Qt\Qt5.14.0\5.14.0\mingw73_32\bin>

我怎样才能让它工作?我已经尝试了很多答案,但没有一个对我有用。

标签: qtplugins

解决方案


推荐阅读