当前位置:网站首页>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.
边栏推荐
- [漏洞复现]CVE-2018-7490(路径遍历)
- Operator Overloading in Inheritance: A Legend of Input and Output
- 【redis】redis之过期监听
- 浅谈Endpoint
- The principle and configuration of VLAN
- The working principle of switch
- Go语言技巧之正确高效使用slice(听课笔记总结--简单易懂)
- 【KD】2022 KDD Compressing Deep Graph Neural Networks via Adversarial Knowledge Distillation
- The Servlet,
- UE4 RTS 框选功能实现
猜你喜欢
随机推荐
EMQ X 消息服务器学习记录——为后面的毕设做准备
XCTF高校战“疫”网络安全分享赛Misc wp
bs4之爬取诗词学习
897. 增加订单搜索树
204. 数素数
数据解析之bs4学习
jdbctemplate连接sql server,代码中查出来的数据跟数据库中不一致,如何解决?
Programming a washing machine: garbled characters after string output
引导过程与服务控制
Euclid and the game
requests之数据解析Xpath介绍
web3到底是什么?
Talking about Flask_script
探索APP性能优化之稳定性优化(解决方案)
内存中的swap机制
[漏洞复现]CVE-2018-12613(远程文件包含)
requests之防盗链学习
prepareStatement的使用
hdu2191 多重背包(2016xynu暑期集训检测 -----B题)
leetcode 37. 解数独 (困难)






![[V&N2020 公开赛]内存取证](/img/b7/20f72a40d43a402009e9451903615b.png)


