在安装了protobuff,https://github.com/protocolbuffers/protobuf/releases/tag/v3.15.6
然后安装protoc,执行命令,sudo apt install protobuf-compiler
执行protoc --c_out=. xxxxxx_cloud.proto,看到如下报错。
protoc-gen-c: program not found or is not executable
--c_out: protoc-gen-c: Plugin failed with status code 1.
后来重新安装sudo apt install protobuf-c-compiler,
然后就可以了