当前位置:网站首页>Qt之生成连接库
Qt之生成连接库
2022-07-21 14:57:00 【Liu-Eleven】
一、Qt生成动态练级库的方式
1).在Linux下生成库
①.在Linux下生成动态链接库
在Qt工程文件中配置:TEMPLATE = lib。默认生成的动态库带软连接。
如果不想带有软连接,则配置:CONFIG += plugin
②.在Linux下生成静态连接库
只需在 .pro文件下配置:
TEMPLATE = lib
CONFIG += staticlib
2).在Windows下生成库
Ⅰ.使用MinGw生成库
①.生成动态库
pro文件配置一样,生成的格式不一样
②.生成静态库
pro文件配置一样,生成的格式不一样
Ⅱ.使用MSVC生成库
①.生成动态库
pro文件配置一样,但是要想生成xxxx.lib文件需要在代码中导出。
例如我下面遇到的问题:
此时只生成qtnotify.dll。
于是在代码中加入:
再次编译就生成了
②.生成静态库
pro文件配置一样,生成的格式不一样
其它:
看下NotificationWidget的效果
边栏推荐
- 15秒带货120W,这样的爆款视频你也能拍
- 网络中的延迟和抖动问题
- Keithley software 2600 series 2601b | 2602b | 2604b | 2606b ns SourceMeter source table software
- unity 3D 修改默认编辑器
- Package wechat Alipay desensitization
- PLC串级PID控制详解(炉膛和中央空调系统控温)
- ECCV 2022 Oral《Unicorn》首次统一了四项目标跟踪任务的网络结构与学习范式,在8个富有挑战性的数据集上SOTA...
- Keithley software 2400 | 2401 | 2410 | 2420 | 2425 | 2430 ns SourceMeter source table software
- ECCV 2022 oral "unicorn" unifies the network structure and learning paradigm of four target tracking tasks for the first time, and SOTA on eight challenging data sets
- 软件测试简历部分应该注意什么?
猜你喜欢
Why is the pit encountered by echart's markarea not displayed according to the time I set
吉时利Keithley软件2600系列2611B|2612B|2614B|2634B NS-SourceMeter源表软件
稀土开发者大会|Apache Pulsar Committer 刘德志分享云原生技术变革之路
OSPF实验演示(Huawei路由器设备配置)
DBF菜单驱动程序:LibraryDatabaseProject
UE4 学习笔记 CheckBox替代button + image
Dom4j parsing XML (detailed)
用Unity做仿真,这款图表插件我不允许你不知道
unity 设置物体不能被穿透
[iccv 2019] acnet: using asymmetric convolution blocks to enhance CNN's convolution kernel skeleton
随机推荐
Node implements batch modification of file names (file renaming)
unity GetAxis(string axisName); How did the axisname value come from
【ICCV 2019】ACNet: 使用非对称卷积块增强CNN的卷积核骨架
While and do while loops
Leetcode skimming: symmetric binary tree and maximum depth of binary tree
Is it worth buying Geely Xingrui's products to upgrade and increase cultural IP linkage?
吉时利Keithley软件2400|2440|2450|2460|2461|2470 NS-SourceMeter源表软件
DOM event flow of DOM series
ECCV 2022 oral "unicorn" unifies the network structure and learning paradigm of four target tracking tasks for the first time, and SOTA on eight challenging data sets
设置MySQL时区
Internship: an example of sensor writing
我之前买的理财产品一直跌怎么办?
Detailed steps for installing and uninstalling MySQL
LeetCode 1217 玩筹码[贪心] HERODING的LeetCode之路
是时候考虑对自己的 App 进行瘦身
jsp自定义标签库--select标签
U++ property ufunction Foundation
什么是扩展方法?virtual方法或abstract方法有什么区别?Interface与 Abstract Class有什么区别?
internship:传感器的编写示例
office 2013 自定义样式,并且将样式设置为目录