当前位置:网站首页>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

边栏推荐
猜你喜欢

会议OA项目进度(二)
[email protected]"/>ZBar source code analysis - img_ scanner. c | [email protected]

15、ARM嵌入式系统:如何用PC调试单板

Implementation of side list menu (side menu) of wechat applet

Long awaited full platform support - Open Source im project uniapp update of openim

Creation and inheritance of JS class

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

Comparison of array and object merging methods assign, merge, defaults, defaultsdeep in lodash

Meeting OA project progress (I)

Why should we launch getaverse?
随机推荐
2019q1 global smartphone shipments: Huawei vivo increased significantly, while Apple plummeted 30.2%!
[LeetCode]38.报数——题解(执行用时击败91% ,内存消耗击败 97%)
Jenkins CLI 命令详解
Qt键盘事件(一)——检测按键输入
JS, call in the for loop is asynchronously converted to synchronous execution
QT design robot simulation controller -- key control robot joint rotation
GEO satellite data download
How to realize seamless rotation map? Write it again with native JS
thinkphp3.2.5无法跳转到外部链接
1184. Distance between bus stops
QT design simulation robot controller
JVM class loading subsystem
Simply use MySQL index
Comparison of array and object merging methods assign, merge, defaults, defaultsdeep in lodash
How to prevent XSS in PHP
Matlab writes excel string and number merging
Zcmu--5083: number pairs of ly (C language)
The differences of several deletions in SQL
我们为什么要推出Getaverse?
Dongfang Guangyi refuted the rumor late at night, saying that the news that the hammer was filed for investigation was untrue!