当前位置:网站首页>QT程序生成独立exe程序(避坑版)
QT程序生成独立exe程序(避坑版)
2022-08-09 08:33:00 【奔跑的小赛兔】
http://blog.sina.com.cn/s/blog_96c6e6ef0102zx8y.html
一、将现有的项目在QT Creater中用release方式编译。
二、打到项目生成的目录,我的是在E:\QTFile\build-calc_20180508-Desktop_Qt_5_8_0_MinGW_32bit-Release。
三、将release中生成的.exe文件拷贝到新的文件夹中,我在这里拷贝到了d:\test\中。
四、在QT安装菜单中找到QT5.8 for DeskTop工具,运行。
五、输入命令:cd /d d:\test\,切换到test目录。
然后使用windeployqt工具命令:windeployqt calc_20180508.exe
六、执行完后就可以看到test文件夹里面自动复制的插件文件、dll文件、qm文件等,在这里就得到了完全程序发布集合。
七、下载QT程序打包工具Enigma Virtual Box,安装完成后点击运行。
链接下的前七个步骤都没问题,最后一个步骤打包的步骤比较坑人,按照他的步骤,最后打包出来的EXE不能独立运行。正确的步骤如下:
注意的是添加好输入输出路径后,在选择文件的时候一定要点击Add选择Add Folder Recursive,然后选择文件夹,切记不能直接将要打包的文件夹拖到软件。否则生成的exe不能独立运行。
边栏推荐
- 小程序调用百度api实现图像识别
- Object detection app based on appinventor and EasyDL object detection API
- 【MySQL】mysql:解决[Err] 1093 - You can‘t specify target table ‘表名‘ for update in FROM clause问题
- C语言笔记 学习预处理 学习宏定义
- + 6000 words, help you understand the Internet architecture evolution.
- OSI网络模型
- BUUCTF MISC刷题笔记(二)
- 【CNN】2022 ECCV 对比视觉Transformer的在线持续学习
- MySQL数据库
- 【CNN】2022 ECCV Oral 自反馈学习的mixup训练框架AutoMix
猜你喜欢
The principle and configuration of VLAN
【MySQL】mysql:解决[Err] 1093 - You can‘t specify target table ‘表名‘ for update in FROM clause问题
【redis】使用redis实现简单的分布式锁,秒杀并发场景可用
Shell programming loop statement and function
VMware virtual machine cannot be connected to the Internet after forced shutdown
VLAN的原理及配置
磁盘管理与挂载
MySQL数据库
scp上传文件到远程服务器
web3到底是什么?
随机推荐
leetcode 36. 有效的数独(模拟题)
Use of prepareStatement
解决iframe跳转时父页面仍然存在的问题
requests之模拟登录学习
路由配置转发及实验
Routing configuration forwarding and experiment
火星人 --简单的数学题
pip3 source change to improve speed
System Security and Application
VLAN的原理及配置
【KD】2022 KDD Compressing Deep Graph Neural Networks via Adversarial Knowledge Distillation
test process
欧几里和游戏
VMware虚拟机强制关闭后,无法联网
【GNN终身学习】2022 CVPR 终身图学习
Dark Horse 2022 latest redis course notes and knowledge points (for interview)
EMQ X message server learning record - prepare for the subsequent completion
App测试
web基本概念
+ 6000 words, help you understand the Internet architecture evolution.