TI论坛
直播中

张辉

8年用户 1436经验值
私信 关注
[问答]

请教关于z-stack linux gateway 中更新protobuf-c的问题

我下载了z-stack linux gateway 然后尝试编译到PC机去执行,按照流程,我下载了 protobuf2.6.1版本。protobuf-c1.2.1版本,并且在ubuntu上也安装成功了,使用protoc-c编译了 nwkmgr.proto 文件
开始编译代码,遇到
nwkmgr.pb-c.h:12:3: error: #error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.

然后按照指示,更新了 代码目录中的google/protobuc-c/下面的protobuf-c.h头文件。可以又遇到以下问题
/zstackpb/zstack.pb-c.h:11:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
typedef struct _AFAddr AFAddr;


zstackpb/zstack.pb-c.h:498:3: error: unknown type name ‘AFAddr’
   AFAddr *dstaddr;

还有一个问题,就是为什么源代码目录中没有zstack.pb-c.c的 zstack.proto和server.pb-c.c的server.proto文件??

回帖(12)

张辉

2018-8-9 08:31:26
顶上去
举报

蒋美燕

2018-8-9 08:50:02
怀疑是版本问题,建议参考帖子中的版本***2150897
举报

凌云志

2018-8-9 09:05:59
看看这篇文章有没有帮助
http://sunmaysky.blogspot.hk/2017/03/build-ti-z-stack-linux-home-gateway.html
Build TI Z-Stack Linux Home Gateway reference design for x86 Linux

                                                                            
举报

李燕

2018-8-9 09:13:11
可以参考之前的帖子:
blog.csdn.net/.../54375494
举报

更多回帖

发帖
×
20
完善资料,
赚取积分