当前位置:网站首页>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.
边栏推荐
- Operator Overloading in Inheritance: A Legend of Input and Output
- ctfshow-web入门 文件上传篇部分题解
- The MySQL database
- Database MySQL installation and uninstallation
- Object detection app based on appinventor and EasyDL object detection API
- Non-decreasing Array
- 路由配置转发及实验
- 数制之间的转换
- [MySQL]mysql: Solve the problem of [Err] 1093 - You can't specify target table 'table name' for update in FROM clause
- 【愚公系列】2022年08月 Go教学课程 033-结构体方法重写、方法值、方法表达式
猜你喜欢
随机推荐
Static routing principle and configuration
OSI网络模型
【CNN】2022 ECCV 对比视觉Transformer的在线持续学习
Literature retrieval operation code
jdbctemplate连接sql server,代码中查出来的数据跟数据库中不一致,如何解决?
深度学习时代的视频理解综述
【KD】2022 KDD Compressing Deep Graph Neural Networks via Adversarial Knowledge Distillation
BUUCTF MISC刷题笔记(二)
Boot process and service control
+ 6000 words, help you understand the Internet architecture evolution.
web3到底是什么?
Dark Horse 2022 latest redis course notes and knowledge points (for interview)
Go语言技巧之正确高效使用slice(听课笔记总结--简单易懂)
Shell编程之正则表达式
Object detection app based on appinventor and EasyDL object detection API
VMware虚拟机强制关闭后,无法联网
EMQ X 消息服务器学习记录——为后面的毕设做准备
路由配置转发及实验
浅谈Endpoint
Different styles of Flask-restful