qt - 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>
我怎样才能让它工作?我已经尝试了很多答案,但没有一个对我有用。
解决方案
推荐阅读
- scikit-learn - 可以添加 tf-idf 值来查找文档相似度吗?
- nginx - “如何修复 nginx:[emerg] “fastcgi_cache” 区域 “wpcache” 在 /etc/nginx/nginx.conf 中未知”
- webforms - TeamCity -> ASP .NET Web 窗体站点的运行器类型
- asp.net-core - 删除 EF Core 中的相关数据
- python - 如何通过一次加载上下文来进行预测,并针对 BERT 神经网络模型中的问题动态预测答案?
- angular - 首次以角度向网站显示组件
- haskell - 如何使用单例库中的 toSing?
- java - 如何使用tomcat7作为reactjs开发服务器而不是nodejs express服务器?
- python-2.7 - EDI 与 odoo v8 的集成
- react-native - 开发服务器返回错误码 504 react native emulator