建议使用以下浏览器,以获得最佳体验。 IE 9.0+以上版本 Chrome 31+ 谷歌浏览器 Firefox 30+ 火狐浏览器
请选择 进入手机版 | 继续访问电脑版
设置昵称

在此一键设置昵称,即可参与社区互动!

确定
我再想想
选择版块
标签
您还可以添加5个标签
  • 没有搜索到和“关键字”相关的标签
  • 云产品
  • 解决方案
  • 技术领域
  • 通用技术
  • 平台功能
取消

蜡笔不辣

发帖: 22粉丝: 4

发消息 + 关注

发表于2020年12月01日 20:59:09 160 2
直达本楼层的链接
楼主
显示全部楼层
[问题求助] 【IoT Studio】编译失败


基于这个实验https://bbs.huaweicloud.com/blogs/140367,编译的时候失败了

image.png

控制台 

[2020-12-01 20:42:47] 符号库初始化扫描中...
[2020-12-01 20:42:50] 符号库初始化成功!

[2020-12-01 20:47:19] 开始编译...
Compiling mbed_port.c... 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:62:1: error: unknown type name 'en_dtls_al_err_t'; did you mean 'mbedtls_ssl_recv_t'? en_dtls_al_err_t mbed_new(dtls_al_para_t *para, void **handle) ^~~~~~~~~~~~~~~~ mbedtls_ssl_recv_t 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:62:27: error: unknown type name 'dtls_al_para_t' en_dtls_al_err_t mbed_new(dtls_al_para_t *para, void **handle) ^~~~~~~~~~~~~~D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:127:1: error: unknown type name 'en_dtls_al_err_t'; did you mean 'mbedtls_ssl_recv_t'? en_dtls_al_err_t mbed_destroy(void *handle) ^~~~~~~~~~~~~~~~ mbedtls_ssl_recv_t 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c: In function 'mbed_destroy': D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:129:15: error: 'EN_DTLS_AL_ERR_PARA' undeclared (first use in this function) int ret = EN_DTLS_AL_ERR_PARA; ^~~~~~~~~~~~~~~~~~~ D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:129:15: note: each undeclared identifier is reported only once for each function it appears in 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:133:15: error: 'EN_DTLS_AL_ERR_OK' undeclared (first use in this function); did you mean 'EN_DTLS_AL_ERR_PARA'? 
ret = EN_DTLS_AL_ERR_OK; 
^~~~~~~~~~~~~~~~~ 
EN_DTLS_AL_ERR_PARA 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c: At top level: 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:185:14: error: unknown type name 'dtls_al_t' 
static const dtls_al_t s_mbedtls_io = 
^~~~~~~~~ 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:187:5: error: field name not in record or union initializer 
.name = "mbed", 

D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:187:5: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:187:13: warning: initialization makes integer from pointer without a cast [-Wint-conversion] 
.name = "mbed", 
^~~~~~ 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:187:13: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:188:5: error: field name not in record or union initializer 
.io = { 

D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:188:5: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:188:5: warning: braces around scalar initializer 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:188:5: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:189:13: error: field name not in record or union initializer 
.io_new = mbed_new, 

D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:189:13: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:189:23: error: 'mbed_new' undeclared here (not in a function); did you mean 'mbed_read'? 
.io_new = mbed_new, 
^~~~~~~~ 
mbed_read 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:190:13: error: field name not in record or union initializer 
.io_connect = mbed_connect, 

D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:190:13: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:190:27: warning: excess elements in scalar initializer 
.io_connect = mbed_connect, 
^~~~~~~~~~~~ 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:190:27: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:191:13: error: field name not in record or union initializer 
.io_read = mbed_read, 

D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:191:13: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:191:24: warning: excess elements in scalar initializer 
.io_read = mbed_read, 
^~~~~~~~~ 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:191:24: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:192:13: error: field name not in record or union initializer 
.io_write = mbed_write, 

D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:192:13: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:192:25: warning: excess elements in scalar initializer 
.io_write = mbed_write, 
^~~~~~~~~~ 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:192:25: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:193:13: error: field name not in record or union initializer 
.io_destroy = mbed_destroy, 

D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:193:13: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:193:27: warning: excess elements in scalar initializer 
.io_destroy = mbed_destroy, 
^~~~~~~~~~~~ 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:193:27: note: (near initialization for 's_mbedtls_io') 
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:188:11: warning: excess elements in scalar initializer 
.io = { 

D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:188:11: note: (near initialization for 's_mbedtls_io') 
14 Error(s), 7 Warning(s).
exit code=2
[2020-12-01 20:47:22] 编译失败。
D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c: In function 'dtls_imp_init': D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:206:11: warning: implicit declaration of function 'dtls_al_install'; did you mean 'dtls_imp_init'? [-Wimplicit-function-declaration] ret = dtls_al_install(&s_mbedtls_io); ^~~~~~~~~~~~~~~ dtls_imp_init At top level: D:/LiteOS_Lab_STM32_V5/iot_link/network/dtls/mbedtls/mbedtls_port/mbed_port.c:47:13: warning: 'mbed_port_debug' defined but not used [-Wunused-function] static void mbed_port_debug( void *ctx, int level, ^~~~~~~~~~~~~~~ make: *** [Makefile:156: appbuild/mbed_port.o] Error 1


举报
分享

分享文章到朋友圈

分享文章到微博
发表于2020年12月02日 08:45:01
直达本楼层的链接
沙发
显示全部楼层

那个博文比较旧了,博主估计也没维护更新;参考较新的这个试试。

https://bbs.huaweicloud.com/blogs/174611

点赞1 评论 引用 举报

望闻问切ice

发帖: 411粉丝: 6

发消息 + 关注

更新于2020年12月07日 09:25:32
直达本楼层的链接
板凳
显示全部楼层

同样求解

点赞 评论 引用 举报

游客

富文本
Markdown
您需要登录后才可以回帖 登录 | 立即注册