惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

博客园 - Alex Lee

开始学习DW [转]SlickEdit 设置点滴 [转帖]mysql消除乱码方法集 简体中文的MSI形式的安装程序显示乱码的处理 VoIP之语音编码器 SIP简介 SIP简介及工作原理 算法收集(不断更新) MYSQL数据同步 注册一个公司的费用和常见问题参考 创业者不得不去的10个网站! 一个简单的算法题 硬件方案终于谈下来了,松了一口气,呼 44B0X串口扩展 Dependency下载网站 Windows平台上修改某个文件的创建、访问、修改日期时间属性 要做个P2P应用,先收集点相关基于UDP可靠传输的资料 规则文本数据文件根据关键字段进行排序的实现 ClassA A() 在幕后做了什么?
QextSerialPort 编译指南
Alex Lee · 2008-03-13 · via 博客园 - Alex Lee

编译环境:
1、qextserialport 1.1
2、QT 4.3.2
3、VC++ 2003

1.在官网下载QextSerialPort最新版qextserialport-1.1.tar.gz,解压到qextserialport-1.1目录中。
2.将qextserialport-1.1目录下的qextserialport拷贝到Qt安装目录下的src目录中
3.进入src目录下的qextserialport目录,输入一下命令编译:
 qmake
 nmake
4.然后在qextserialport目录下的build目录下可得到qextserialport.dll,qextserialport.prl,libqextserialport.a三个文件,将qextserialport.dll复制到Qt安装目录下的bin目录中,将qextserialport.prl,libqextserialport.a复制到Qt安装目录下的lib目录中。(默认一般生成DLL和PRL,生成LIB参见附录步骤
5.在Qt安装目录下的include目录下的Qt目录中新建文件qextserialport.h,文件内容为:
#include "http://www.cnblogs.com/src/qextserialport/qextserialport.h"
并将该文件复制到Qt安装目录下的include目录下的QtGui目录中,并在该目录中再新建一个文件QextSerialPort(无扩展名),该文件内容为:
#include “qextserialport.h”
6.将src/qextserialport目录中的example目录拷贝到硬盘的其他地方,删除例子目录下的Makefile.Release, Makefile, Makefile.Debug,README和QESPTA.pro几个文件。
7.打开例子目录中的main.cpp和QespTest.cpp文件,修改#include <qextserialport.h>为#include <QextSerialPort>
8.编译自带EXAMPLE:进入EXAMPLE目录,输入:
 Qmake –project
得到工程文件qespta.pro,打开该工程文件,如果当前系统为win32,加入语句:
 LIBS          += -lqextserialport
 win32:DEFINES  = _TTY_WIN_ QWT_DLL QT_DLL

如果当前系统为unix/linux,加入语句:
 LIBS          += -lqextserialport
 unix:DEFINES   = _TTY_POSIX_
9.编译
 qmake
 nmake
如果编译成功证明已经扩展成功
10.该扩展帮助文档位于src/qextserialport目录中,可供查阅
注意,此扩展方法将类QextSerialPort扩展至QtGui下,请勿将类QextSerialPort误认为QtGui的一部分

附录:如何生成qextserialport.lib
qmake默认是生成动态库版本,静态链接文件生成需要修改qextserialport.pro。(关于qmake参数说明可参见: http://www.cppblog.com/mydriverc/articles/32728.html )
1、打开qextserialport.pro
2、修改
CONFIG                 += warn_on qt thread

CONFIG                 += warn_on qt thread staticlib