当前位置:网站首页>[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
边栏推荐
- Solve the inherent defects of CNN! Common CNN architecture ccnn is coming | icml2022
- Forward propagation of deep learning neural networks (1)
- Awk from introduction to earth (16) discussion on the types of awk variables -- about the two types of numbers and strings
- Lecture notes a utility for everyone to generate PCG
- [dry goods] 32 EMC standard circuits are shared!
- Deluxe H5 Tetris game source code
- Es6: template string
- protobuf 基本语法总结
- There are two Kafka topics that need to write data intact to MySQL King through Flink. Scheme 1: write two f's
- JS thoroughly understand this point
猜你喜欢

Es6: arrow function usage

Basic dictionary of deep learning --- activation function, batch size, normalization

Opencv's practical learning of credit card recognition (4)

解决EMC、EMI传导干扰的八大方法

五张图看懂EMI电磁干扰的传播过程-方波陡峭程度对高频成分的影响,时序到频域频谱图形,波形形状对EMI辐射的影响。

网口网络水晶头RJ45、POE接口定义线序

These mobile security browsers are more than a little easy to use

CarSim simulation quick start (XII) - Driver Model (2)

Rk3568 development board installation system startup

Discrimination coverage index / index coverage / Samsung index
随机推荐
Spiral matrix
Common solutions for distributed ID - take one
New generation cloud native message queue (II)
Find out whether the number exists from the matrix
MCU IO port controls 12V voltage on and off, MOS and triode circuit
There are two Kafka topics that need to write data intact to MySQL King through Flink. Scheme 1: write two f's
03 | 项目部署:如何快速部署一个基于laravel框架开发的网站
Meituan Er Mian: why does redis have sentinels?
基于单例模式的yaml参数配置
Mysql, how can we get the number of rows affected by the query?
How to build the protection system of class protection technology of 2022 series of ISO compliance (Part I)
记录一次mycat连接Communications link failure问题解决
What if the computer folder cannot be renamed?
js卡通英文字母打字小游戏源码
【13】加法器:如何像搭乐高一样搭电路(上)?
What if the task manager is not fully displayed?
MPLS --- 多协议标签交换技术
Viewing vantage's self drive from the "three good" kitchen electricity standard and the value proposition of "serious life"
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (VIII)
The fourth phase (2021-2022) research on the implementation of cloud native technology in traditional industries - central state-owned enterprises was officially released