小弧光的博客

公众号:小弧光黑板报

导航

nanopb 编译 proto 文件的坑

1、要使用nanopb 自带的 protoc 命令

2、要使用 options 文件,必须在 .proto 文件下执行命令

 

➜  protobuf_c git:(xx) ✗ ls
udp_carrier.proto  udp_proto.options

 /usr/local/nanopb-0.4.8-linux-x86/generator-bin/protoc udp_proto.proto  --nanopb_out=./

posted on 2023-11-29 16:32  小弧光  阅读(161)  评论(0编辑  收藏  举报