QT打包的两种方式:
一个是QT5自带的windeployqt(不需要下载安装),它可以找到程序(exe)用到的所有库文件,并且都拷贝到exe程序的当前文件。此时打包的exe较小,需要和拷贝进来的文件放一起运行,也可以将这些文件再次打包成一个大的exe文件,此时用的第二种打包方式。
另一个是Engima Virtual Box,这是下载链接Engima Virtual Box
1. 简单说明下 windeployqt 在release或是Debug目录下 复制qt exe 需求的dll库等。此前exe可以运行
2. 可以使用engima virtual box将qt程序打包成一个Exe
3. 在上面两个问题解决完成的前提下,那么接下来的问题又来了,exe 文件很大怎办? 文件压缩,推荐PECompact 下载地址:http://download.csdn.net/download/sniper_bing/7669247