当前位置:网站首页>QT program generates independent exe program (pit-avoiding version)
QT program generates independent exe program (pit-avoiding version)
2022-08-09 08:40:00 【running little rabbit】
http://blog.sina.com.cn/s/blog_96c6e6ef0102zx8y.html
1. Compile the existing project in QT Creater in release mode.
2. Go to the directory generated by the project, mine is in E:\QTFile\build-calc_20180508-Desktop_Qt_5_8_0_MinGW_32bit-Release.
3. Copy the .exe file generated in the release to a new folder, I copied it to d:\test\ here.
4. Find the QT5.8 for DeskTop tool in the QT installation menu and run it.
5. Enter the command: cd /d d:\test\, switch to the test directory.
Then use the windeployqt tool command: windeployqt calc_20180508.exe
6. After the execution, you can see the automatically copied plug-in files, dll files, qm files, etc. in the test folder, and the complete program release is obtained heregather.
7. Download the QT program packaging tool Enigma Virtual Box, and click Run after the installation is complete.
The first seven steps under the link are all right, but the packaging step of the last step is quite tricky. According to his steps, the final packaged EXE cannot beOperate independently.The correct steps are as follows:
Note that after adding the input and output paths, be sure to click Add to select Add Folder Recursive when selecting a file, and then select a folder. Remember not to directly drag the folder to be packaged to the software.Otherwise the generated exe cannot run independently.
边栏推荐
猜你喜欢
随机推荐
VMware virtual machine cannot be connected to the Internet after forced shutdown
leetcode 34. 在排序数组中查找元素的第一个和最后一个位置(二分经典题)
Kibana:为地图应用选择不同的语言 - Elastic Stack 8.3
包子凑数----欧几里得+dp
Shell编程之循环语句与函数
IO byte stream reads text Chinese garbled
OpenHarmony轻智能产品开发直播笔记
get一个小技巧,教你如何在typora写文章上传图片到博客上
Win10电脑的WLAN消失的故事
【CNN】2022 ECCV Oral 自反馈学习的mixup训练框架AutoMix
长辈相亲
File Handling (IO)
Process synchronization and mutual exclusion problem
EMQ X 消息服务器学习记录——为后面的毕设做准备
账号和权限管理
数据库MySQL的安装和卸载
数制之间的转换
正则表达式基础介绍
PID控制电机输出作为电机PWM占空比输入的理解
The principle and configuration of VLAN