当前位置:网站首页>QT generation connection Library
QT generation connection Library
2022-07-24 16:42:00 【Liu-Eleven】
One 、Qt How to generate dynamic leveling Library
1). stay Linux Generate Library under
①. stay Linux Generate dynamic link library under
stay Qt Configure in the project file :TEMPLATE = lib. The default generated dynamic library has soft connection .

If you don't want to have a soft connection , Then configure :CONFIG += plugin
![]()
②. stay Linux Generate static connection Library under
Just in .pro File configuration :
TEMPLATE = lib
CONFIG += staticlib

2). stay Windows Generate Library under
Ⅰ. Use MinGw Build a library
①. Generate dynamic library
pro The file configuration is the same , The generated format is different
②. Generate static libraries
pro The file configuration is the same , The generated format is different
Ⅱ. Use MSVC Build a library
①. Generate dynamic library
pro The file configuration is the same , But to generate xxxx.lib The file needs to be exported in the code .
For example, the problem I encountered below :
![]()
Only generated at this time qtnotify.dll.
So add... To the code :
![]()
Compile again to generate

②. Generate static libraries
pro The file configuration is the same , The generated format is different
Other :
look down NotificationWidget The effect of

边栏推荐
- Comparison of array and object merging methods assign, merge, defaults, defaultsdeep in lodash
- Thinkphp3.2.5 cannot jump to external links
- EF data migration
- [machine learning basics] - another perspective to explain SVM
- Qualcomm reconciled with apple and received at least $4.5 billion in settlement fees! Next goal: Huawei!
- ZCMU--5083: ly的数对(C语言)
- Jupyter uses tips
- 1309. Decode letter to integer mapping
- 会议OA项目进度(二)
- OpenMP入门
猜你喜欢

jvm类加载子系统

AXI协议(3):AXI架构的握手机制和实现细节

会议OA项目进度(一)

JVM class loading subsystem

Sword finger offer 48. the longest substring without repeated characters

TCP protocol debugging tool tcpengine v1.3.0 tutorial

TCP协议调试工具TcpEngine V1.3.0使用教程

AXI协议(2):AXI架构的五个通道和两种事务

PS pull out logo

Servlet framework (servlet+jsp) + addition, deletion, modification and query + paging implemented by MySQL (function package student information entry, addition, deletion, modification and query of st
随机推荐
[leetcode]75. color classification - problem solving (execution time beat 90%, memory consumption beat 78%)
Why should we launch getaverse?
Analysis of double pointer sliding window method and solution of leetcode related problems
ArcGIS create vector
Unity 相机自由移动控制
【技术】uniapp 之 在线选座 demo
Picture browser? QT can also be achieved!
如何在 PHP 中防止 XSS
Pull and load more on wechat applet list rendering
The 3D sensing market is accelerating. Who will be better, TOF or structured light?
Disassembly of Samsung Galaxy fold: the interior is extremely complex. Is the hinge the main cause of screen damage?
[LeetCode]38.报数——题解(执行用时击败91% ,内存消耗击败 97%)
Sword finger offer 25. merge two sorted linked lists
详解 Apache Hudi Schema Evolution(模式演进)
【技术】uniapp之聊天室 demo
Microsoft Visio professional 2013 cannot be opened or uninstalled. Solution
How to prevent XSS in PHP
【机器学习基础】——另一个视角解释SVM
Princeton calculus reader 02 Chapter 1 -- composition of functions, odd and even functions, function images
QT design simulation robot controller