当前位置:网站首页>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.
边栏推荐
猜你喜欢
leetcode 36. 有效的数独(模拟题)
[漏洞复现]CVE-2018-7490(路径遍历)
Processes and Scheduled Tasks
数制转换及子网划分
OpenHarmony轻智能产品开发直播笔记
Dark Horse 2022 latest redis course notes and knowledge points (for interview)
【redis】使用redis实现简单的分布式锁,秒杀并发场景可用
[漏洞复现]CVE-2018-12613(远程文件包含)
内存中的swap机制
Routing configuration forwarding and experiment
随机推荐
解决iframe跳转时父页面仍然存在的问题
MySql homework practice questions
leetcode 34. 在排序数组中查找元素的第一个和最后一个位置(二分经典题)
Win10电脑的WLAN消失的故事
Xpath之爬取全国城市名称学习
Boot process and service control
数据解析之bs4学习
App testing
nyoj58 最少步数(DFS)
scp upload file to remote server
MySql作业练习题
leetcode 36. 有效的数独(模拟题)
P1064 Jin Ming's Budget Plan
正则之re模块
路由配置转发及实验
requests爬取百度翻译
System Security and Application
The story of the disappearing WLAN of Windows 10 computers
Cookie和Session详解
Matlab, and nonlinear equations solving linear equations