1.首先执行QT ->Release ,会生成对应的.exe文件
2.将release下的.exe文件单独拷贝出来,例如拷贝到G://serial文件夹下
3.找到电脑上安装的QT 5.9.1Desktop(minGW 5.3.0 32bit),打开,如图2
4.指到指定目录,如图3,执行 windeployqt ****.exe,即会在对应文件夹下生成相关文件,如图3
图1:
![](https://app.yinxiang.com/shard/s4/res/c70b3fb4-300b-4d26-a8b5-daf925882b2e/11.png)
![](https://app.yinxiang.com/shard/s4/res/c70b3fb4-300b-4d26-a8b5-daf925882b2e/11.png)
图2:
![](https://app.yinxiang.com/shard/s4/res/72e5e280-923a-40f7-a3a4-edad553032ea/12.png)
![](https://app.yinxiang.com/shard/s4/res/72e5e280-923a-40f7-a3a4-edad553032ea/12.png)
图3:
![](https://app.yinxiang.com/shard/s4/res/7fecaf0d-bc9c-4a61-8b97-341780fe1b21/13.png)
![](https://app.yinxiang.com/shard/s4/res/7fecaf0d-bc9c-4a61-8b97-341780fe1b21/13.png)
5.打开 Engma Virtual Box_v7.50.exe ,找到对应文件夹下的.exe程序,按照如图示例操作,增加->增加文件夹递归[x],选中serial,确定;
点击 执行封包即可,会在对应文件夹下生成****_boxed.exe ,即为可发布程序
![](https://app.yinxiang.com/shard/s4/res/6e21cc7c-4e8d-4a45-9112-3c10f5c2197d/14.png)
打包工具: