Protocol Buffer Error on compile during GOOGLE_PROTOBUF_MIN_PROTOC_VERSION check

Protocol Buffer Error on compile during GOOGLE_PROTOBUF_MIN_PROTOC_VERSION check

出现这个问题 一般是安装了多个版本 protobuf

https://stackoverflow.com/questions/35744529/protocol-buffer-error-on-compile-during-google-protobuf-min-protoc-version-check

https://blog.csdn.net/weixin_44966641/article/details/122354782

一般排查方法:

protoc --version
libprotoc 2.6.1

查看 这个头文件对 protobuf 版本要求
/usr/include/google/protobuf/stubs/common.h

or 

/usr/local/include/google/protobuf/stubs/common.h

find ~/ -name "common.h"  |grep protobuf
posted @ 2024-10-23 15:10  michaelchengjl  阅读(12)  评论(0编辑  收藏  举报