A note about compiling issues
=============================
The name of the boost libraries seems to change from release to release.
This is not a problem if you use CMake, but with QMake it is an issue.
To fix it open the file SerialGUI.pro and look at the LIBS variable:
LIBS += -L/usr/local/lib \
-lboost_system \
-lboost_thread \
-lboost_date_time
Some version of the boost libraries have the -mt suffix. If this is the case
on your platform, modify the LIBS variable to:
LIBS += -L/usr/local/lib \
-lboost_system-mt \
-lboost_thread-mt \
-lboost_date_time-mt
A note about windows users
==========================
To use boost.asio on windows you need to add this line to SerialGUI.pro:
DEFINES += _WIN32_WINNT=0x0501
and modify the LIBS variable to:
LIBS += -LC:/the path where you have the boost libraries \
-lboost_system \
-lboost_thread \
-lboost_date_time \
-lwsock32 -lws2_32
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
boost::asio::serial下6个工程演示多种串口读取写入方式方法,包含simple,with_timeout,async,callback,qt_integration,stream 等多个工程演示多种方式读取,写入串口,char,string ,buffer[]等多种数据格式。
资源推荐
资源详情
资源评论
收起资源包目录
serial-port-master.zip (37个子文件)
serial-port-master
5_Qt_integration
mainwindow.ui 2KB
Readme.txt 940B
QAsyncSerial.h 2KB
SerialGUI.pro 454B
mainwindow.cpp 946B
main.cpp 177B
AsyncSerial.cpp 15KB
AsyncSerial.h 7KB
mainwindow.h 472B
QAsyncSerial.cpp 2KB
6_stream
CMakeLists.txt 388B
serialstream.h 6KB
main.cpp 849B
Makefile.windows 310B
serialstream.cpp 6KB
1_simple
SimpleSerial.h 2KB
CMakeLists.txt 371B
main.cpp 421B
Makefile.windows 229B
4_callback
test.cpp 642B
CMakeLists.txt 408B
main.cpp 2KB
AsyncSerial.cpp 15KB
AsyncSerial.h 7KB
2_with_timeout
TimeoutSerial.cpp 7KB
CMakeLists.txt 392B
main.cpp 890B
Makefile.windows 315B
TimeoutSerial.h 8KB
3_async
BufferedAsyncSerial.cpp 3KB
BufferedAsyncSerial.h 3KB
CMakeLists.txt 408B
main.cpp 940B
AsyncSerial.cpp 15KB
AsyncSerial.h 7KB
Makefile.windows 422B
Version.txt 833B
共 37 条
- 1
Qidian213
- 粉丝: 59
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 记录了贪心,动态规划等算法基本思想与设计.zip
- 基于菲阿里基本模型,以及MACD RSI BooL 等技术指标 构建一套基于贪心算法策略的智能投顾模型.zip
- oj算法代码-贪心算法.zip
- 基于yolov8行人检测源码+模型.zip
- 公开整理-地级市-绿色专利申请、授权数据集(2000-2022年).xlsx
- 基于Transformer模型的图像质量评分模型实现源码+详细说明文档.zip
- CST电磁场仿真+线性螺旋电感+建模步骤细节和RLC端口配置+CST高级建模操作
- 大数据库实验的报告材料材料(word文档良心出品).doc
- AIS2024 valid
- 最入门的爬虫代码 python.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页