对于编译好的qt程序可以使用下面的方法导出:
-
打开
Qt 5.8 for Desktop (MinGW 5.3.0 32 bit)
,该命令行预设了qt变异环境
cd到程序目录 我的目录是
D:\SimuChData
Setting up environment for Qt usage...
C:\Qt\Qt5.8.0\5.8\mingw53_32>cd D:\SimuChData
C:\Qt\Qt5.8.0\5.8\mingw53_32>d:
- 执行
windeployqt
,导出库
D:\SimuChData>windeployqt.exe SimuChData.exe
D:\SimuChData\SimuChData.exe 32 bit, release executable
Direct dependencies: Qt5Core
All dependencies : Qt5Core
To be deployed : Qt5Core
Updating Qt5Core.dll.
Updating libgcc_s_dw2-1.dll.
Updating libstdc++-6.dll.
Updating libwinpthread-1.dll.
Patching Qt5Core.dll...
Creating D:\Itrace\SimuChData\translations...
Creating qt_ca.qm...
Creating qt_cs.qm...
Creating qt_de.qm...
Creating qt_en.qm...
Creating qt_fi.qm...
Creating qt_fr.qm...
Creating qt_he.qm...
Creating qt_hu.qm...
Creating qt_it.qm...
Creating qt_ja.qm...
Creating qt_ko.qm...
Creating qt_lv.qm...
Creating qt_pl.qm...
Creating qt_ru.qm...
Creating qt_sk.qm...
Creating qt_uk.qm...
D:\SimuChData>
-
查看目录下已经生成