Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

描述:修复交叉编译时,samples 不能被编译通过的问题。 #33

Open
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

hi-tangbin
Copy link

原因:samples 的 CMakeLists.txt 第 22 行开始,只设置了 gcc 和 MSVC 的 lib,导致 arm-gcc 等其它 gcc 编译时找不到需要的库文件。
解决思路:用 CMAKE_C_COMPILER 表示目标编译工具,COMPILE_TOOLS 用来表示编译器。这样可以简化 CMakeLists.txt 里的配置,并可删除 CMakeLists.txt 里的第 97 行到 103 行,因为 Linux gcc 的 CMAKE_C_FLAGS 基本通用。

yougaliu and others added 30 commits May 15, 2019 10:32
2. 增加设备动态注册示例。
3. 增加设备信息读写HAL接口。
4. 增加AES加解密功能。
2. 修改动态注册的HTTP Server端口。
3. 修改Readme
4. 发布版本V2.3.5
2. 增加事件上报功能。
3. 增加数据模板代码生成脚本工具
4. 修复Json处理的若干bug。
5. 新增数据模板示例、事件示例、数据模板智能灯场景示例。
6. 版本号修改为V3.0.0,支持物联网开发平台(IoT Explorer)。
…及unsubscribe之后再次订阅失败的问题

2. Log upload的buffer内存采用动态申请方式
1. 日志上报功能优化,动态分配缓冲区内存,支持较大日志分段上报,适合多种使用场景。
2. MQTT增加subscribe的event handler,及时通知subscribe状态。
3. 修复一些代码问题,比如对MQTT API的返回值判断不当问题。
2. 设备影子去除version。
3. 字符串内存空间申请缺陷修复。
2. SDK版本号更新为3.0.3。
2. list_remove增加list长度判断。
1. 集成RT-Thread平台支持
2. 修复一些代码bug以及MQTT construct失败后资源释放不完整的问题
3. OTA HTTPS或HTTP下载方式可以通过编译选项控制
2. 修复设备信息json文件不完整导致的段错误
1. 移除IoT Explorer相关代码及文档
2. ca.c/h重命名为qcloud_iot_ca.c/h, device.c/h重命名为qcloud_iot_device.c/h
3. 更新部分文档说明
1.优化ota_mqtt_sample,将ota流程以及需要文件操作的地方解耦分离,并且sample支持MQTT断开重连之后仍然可以恢复下载。
2.优化gateway_sample,并增加代理一个以上子设备示例代码。
3.增加查询MQTT主题是否订阅成功的接口。
4.优化及更新文档。
5.修复一些编译警告及bug
Correct the typo in the example template
1. 合并mtmc分支代码,支持多设备连接,优化多线程接口
2. 修复一些潜在的内存泄漏及越界问题,以及跨平台编译运行问题
2. 使用clang-format格式化代码,引入代码检查工具clang-tidy及cpplint
spikelin and others added 7 commits June 23, 2020 17:03
2. add one way to check MQTT construct error
3. remove some useless code
1. 新增rrpc同步通信功能及示例
2. 新增广播功能及示例
3. 网关增加绑定/解绑子设备接口
4. 更新文档
1. 新增远程配置功能及示例
2. 网关增加获取子设备列表接口
3. 更新文档
1.增加从MQTT后台同步NTP时间的功能接口
2.增加网关子设备OTA示例
3.优化Log/HAL_Printf对字符串指针的处理
4.修复AT socket部分bug
原因:samples 的 CMakeLists.txt 第 22 行开始,只设置了 gcc 和 MSVC 的 lib,导致 arm-gcc 等其它 gcc 编译时找不到需要的库文件。
解决思路:用 CMAKE_C_COMPILER 表示目标编译工具,COMPILE_TOOLS 用来表示编译器。这样可以简化 CMakeLists.txt 里的配置,并可删除 CMakeLists.txt 里的第 97 行到 103 行,因为 Linux gcc 的 CMAKE_C_FLAGS 基本通用。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants