当前位置:网站首页>[Qt5] QT small software release
[Qt5] QT small software release
2022-07-28 08:29:00 【qilei2010】
We all know Qt Cross platform features , So in addition to enjoying The signal - Slot Besides the development convenience brought by the mechanism ,Qt There are also simple ways to publish .
1. Qt Creator kit
In the installation Qt Creator when , Will let you choose to install Kit, There are about four kinds of , As shown in the figure below :

MinGW 32-bit
MinGW 64-bit
MSVC 20XX 32bit
MSVC 20XX 64bit
Say... Loosely ,
MSVC 2017 64 position , Is used for Microsoft 64 position C++ compiler ,MinGW 64 position , Is the use GNU Of 64 Bit C/C++ compiler .
The result is what the software they build and compile depends on dll Each are not identical .
2. MSVC disadvantages
Use MSVC The disadvantages of building and compiling are very serious .
1. It must be carried in the release package vc_redist.x64.exe
2. The user must install vc_redist.x64.exe, Double click to open our exe
How ugly and disgusting . and MinGW There is no such trouble .
3. A simple way to publish
stay D disc Create a new folder , Name it myapp, That is to say D:\myapp Folder .
3.1 Generate exe
1. stay Qt Creator Select from the operation configuration interface in the lower left corner :
MinGW 32bit,Release

2. Then click the green triangle , With Release Run the software in release mode .
3. stay Qt Of Release The catalogue will find our exe file , commonly exe Of Release The directory is in this location :
C:\Users\Administrator\Documents\Qt5\build-MyApp-Desktop_Qt_5_12_9_MinGW_32_bit-Release\release
take myapp.exe Copied to the D:\myapp In the folder .
3.2 Use windeployqt.exe Release
Use Qt It's official windeployqt.exe Tools release our software .
Be careful : The four above kit All have their own windeployqt.exe Tools , So choose Release Used when kit Corresponding windeployqt.exe Tools .

What we use above MinGW 32bit, So we :
1. The start menu ->Qt5.12.9 -> Qt 5.12.9(MinGW 7.3.0 32-bit), Input
windeployqt D:\myapp\myapp.exe
there myapp.exe To replace with your exe name .
A serious warning : Please forward 360 Security guard and other security protection software close and exit !
2. take D:\myapp The folder is compressed to zip It can be sent to users . After the user unzips, double-click exe You can run .



Tips :
If you can't find it in the start menu minGW, You can go straight to Qt Installation directory lookup , Similar to the following directory :
C:\Qt\Qt5.12.9\5.12.9\mingw73_32\bin
3.3 ( It's not necessary ) Copy depends on dll
If you find double clicking exe Run time error , Tip the lack of xxx.dll file , You can enter your MinGW 32bit Where bin Folder , as follows :
C:\Qt\Qt5.12.9\5.12.9\mingw73_32\bin
If you use it MinGW 64bit , The corresponding is mingw74_64\bin.
The inside No use Qt5 At the beginning dll That's what we're looking for dll file , Copied to the D:\myapp In the folder .
As for others dll, Look at you Qt Copy whichever is used in the project .
I don't know , All in this document dll Copy to desktop myapp Folders are also OK , The result is a large volume of compressed packets for users .

Reference resources :CSDN:Qt The program is released and packaged into exe Installation package
边栏推荐
- 记录一次mycat连接Communications link failure问题解决
- No super high-rise buildings | new regulations: what information does it reveal that no new buildings above 500 meters should be built?
- Talk about synchronous, asynchronous, blocking and non blocking
- Deep browser rendering principles
- 聊一聊数据库的行存与列存
- C#,入门教程——程序运行时的调试技巧与逻辑错误探针技术与源代码
- @The role of documented
- Mechanical revolution Jiaolong P wired network card driver can't play
- js卡通英文字母打字小游戏源码
- Melt cloud x chat, create a "stress free social" habitat with sound
猜你喜欢
C language explanation series - array explanation, one-dimensional array, two-dimensional array

c语言中函数的介绍(血书20000字!!!!)

Qt使用信号量控制线程(QSemaphore)
![Chapter 01 introduction of [notes of Huashu]](/img/11/cc405a730822305f02f05678f6a9d1.png)
Chapter 01 introduction of [notes of Huashu]

解析树形结构 js

JS thoroughly understand this point

Prescan quick start to proficient in lecture 17, speed curve editor

XSS knowledge points and 20 character short domain name bypass

Protobuf basic grammar summary

【13】 Adder: how to build a circuit like Lego (Part 1)?
随机推荐
[chart component kit] Shanghai daoning provides developers with steema download, trial and tutorial
Es6: arrow function usage
【活动报名】云原生技术交流 Meetup,8 月 6 日广州见
Parse tree structure JS
jquey的基础语法
2022/7/27 考试总结
Swm32 series tutorial 5-adc application
03 | 项目部署:如何快速部署一个基于laravel框架开发的网站
mysql:LIKE和REGEXP操作有什么区别?
mysql,我们如何得到受查询影响的行数?
对spark算子aggregateByKey的理解
Tell you step by step what you need to do to apply for PMP? What should I do?
Record a MYCAT connection and solve the problems of communications link failure
Will ordinary browsers disclose information? How to protect privacy by using a secure browser?
Qt多线程中槽函数在哪个线程里执行分析
Common solutions for distributed ID - take one
Rk3568 development board installation system startup
These mobile security browsers are more than a little easy to use
Brief introduction to ThreadLocal class
机械革命蛟龙p有线网卡驱动打不上