我正在尝试部署我制作的程序,以便将 exe 发送给我的老师。起初,我无法让 exe 在 qt 之外工作。感谢我在这里找到的答案,我将文件夹plugins/platform
和一堆 dll 放在我的 exe 所在的发布文件夹中,现在它可以工作了。但我不想需要所有这些文件,我只需要 exe,所以,我打开 cmd,我转到 windeploqt.exe 并输入:
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>
Run Code Online (Sandbox Code Playgroud)
我怎样才能让它工作?我尝试了很多答案,但没有一个对我有用。
归档时间: |
|
查看次数: |
2472 次 |
最近记录: |