文章目录
- 前言
- 一、使用步骤
- 1.调整为release 版本
- 2.运行,在release 中找到执行文件
- 3. 拷贝.exe文件到某个新建文件夹的目录
- 4.找到自带编译器版本
- 5.点击进入目录
- 6. 执行 执行 windeployqt xxx.exe
- 7.打包完成
- 8.绿色版
- 9.保存打包记录
- 总结
前言
提示:这里可以添加本文要记录的大概内容:
项目需要:打包开发好的软件给客户使用
提示:以下是本篇文章正文内容,下面案例可供参考
一、使用步骤
1.调整为release 版本
2.运行,在release 中找到执行文件
3. 拷贝.exe文件到某个新建文件夹的目录
4.找到自带编译器版本
5.点击进入目录
6. 执行 执行 windeployqt xxx.exe
windeployqt ModbusTCP.exe
C:\Qt\Qt5.14.2\5.14.2\msvc2017_64>cd C:\Users\gh\Desktop\dabao
C:\Users\gh\Desktop\dabao>windeployqt ModbusTCP.exe
C:\Users\gh\Desktop\dabao\ModbusTCP.exe 64 bit, release executable
Adding Qt5Svg for qsvgicon.dll
Skipping plugin qtvirtualkeyboardplugin.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_hangul.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_openwnn.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_pinyin.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_tcime.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_thai.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Direct dependencies: Qt5Core Qt5Gui Qt5Widgets Qt5SerialBus
All dependencies : Qt5Core Qt5Gui Qt5Network Qt5SerialPort Qt5Widgets Qt5SerialBus
To be deployed : Qt5Core Qt5Gui Qt5Network Qt5SerialPort Qt5Svg Qt5Widgets Qt5SerialBus
Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.
Updating Qt5Core.dll.
Updating Qt5Gui.dll.
Updating Qt5Network.dll.
Updating Qt5SerialPort.dll.
Updating Qt5Svg.dll.
Updating Qt5Widgets.dll.
Updating Qt5SerialBus.dll.
Updating libGLESv2.dll.
Updating libEGL.dll.
Updating D3Dcompiler_47.dll.
Updating opengl32sw.dll.
Creating directory C:/Users/gh/Desktop/dabao/bearer.
Updating qgenericbearer.dll.
Creating directory C:/Users/gh/Desktop/dabao/canbus.
Updating qtpassthrucanbus.dll.
Updating qtpeakcanbus.dll.
Updating qtsysteccanbus.dll.
Updating qttinycanbus.dll.
Updating qtvectorcanbus.dll.
Updating qtvirtualcanbus.dll.
Creating directory C:/Users/gh/Desktop/dabao/iconengines.
Updating qsvgicon.dll.
Creating directory C:/Users/gh/Desktop/dabao/imageformats.
Updating qgif.dll.
Updating qicns.dll.
Updating qico.dll.
Updating qjpeg.dll.
Updating qsvg.dll.
Updating qtga.dll.
Updating qtiff.dll.
Updating qwbmp.dll.
Updating qwebp.dll.
Creating directory C:/Users/gh/Desktop/dabao/platforms.
Updating qwindows.dll.
Creating directory C:/Users/gh/Desktop/dabao/styles.
Updating qwindowsvistastyle.dll.
Creating C:\Users\gh\Desktop\dabao\translations...
Creating qt_ar.qm...
Creating qt_bg.qm...
Creating qt_ca.qm...
Creating qt_cs.qm...
Creating qt_da.qm...
Creating qt_de.qm...
Creating qt_en.qm...
Creating qt_es.qm...
Creating qt_fi.qm...
Creating qt_fr.qm...
Creating qt_gd.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...
Creating qt_zh_TW.qm...
C:\Users\gh\Desktop\dabao>
7.打包完成
8.绿色版
官网下载
https://www.enigmaprotector.com/en/downloads.html
打包成功
9.保存打包记录
总结
努力每天都有收获。