Protobuf在Ubuntu上不编译
Protobuf on Ubuntu not compiling
i不能在ubuntu上使用Protobuf编译。这是错误:
错误:#error这个文件是由较新版本的protoc生成的 #Error此文件是由较新版本的Protoc生成的 ^ build/x86_64/gen/rtbkit/plugins/exchange/realtime-bidding.pb.h:13:2:错误:#Error与协议缓冲区的标头不相容。请更新 #Error与您的协议缓冲区标头不兼容。请更新 ^ build/x86_64/gen/rtbkit/插件/Exchange/reace-bidding.pb.h:14:2:错误:#eRROR您的标题。 #误导你的标题。 ^ 在build/x86_64/gen/rtbkit/plugins/exchange/实量bidding.pb.cc:5:0中包含的文件中 build/x86_64/gen/rtbkit/rtbkit/plugins/exchange/realtime-bidding.pb.h:26:55:致命错误:google/protobuf/generated_enum_reflection.h:没有这样的文件或目录 #包括 ^
我删除了它,它仍然显示Protobuf 2.5
这是Protobuf的常见问题。您需要仔细检查您正在使用的protoc
以及所使用的标头,如果您安装了2个版本,则尤其如此!在标题文件.pb.h
中,您将找到使用的Protobuf版本:
#if GOOGLE_PROTOBUF_VERSION < 2006000
检查是否应该是您应该使用的原始版本。之后,检查您使用的Protobuf标头是什么。如果您的原始版本与Protobuf标题之间没有相关性,则显示显示的消息。
- 在 Ubuntu 18.04 上编译 GLSL 着色器时"不支持 GLSL 3.30"?
- 在 Ubuntu 中编译 SuiteSparse,在安装 CHOLMOD 时中断
- 如何在 Ubuntu 上编译 OpenGL 项目?
- 在 ubuntu 焦点上编译虚幻引擎 4.25 时出错
- 在 Ubuntu 16.04 LTS 上使用 c++ 编译问题?
- 编译问题与 Ubuntu Linux
- Ubuntu 下的 Cmake 和 Intel IPP 的编译问题
- 在Linux/Ubuntu中编译openCV应用程序时,如何解决未定义的引用cv:..?
- 如何解决我在 Ubuntu 19.04 下使用 GLFW 时遇到的这个编译问题?
- wxWebView在Ubuntu上的编译问题
- 如何在Ubuntu中使用Visual Studio代码编译C++代码
- 在 Ubuntu 18.04 上,我编译的 cpp 可执行文件找不到 VTK7 依赖项
- 在 Xubuntu 19.04 中编译 c++ 是否应该与在 Ubuntu 18.04 中编译 c++ 不同
- 针对 ubuntu 和 Mac 编译的差异
- G++ 编译:在 Ubuntu 18.04 上对 'ATL_<...>' 的未定义引用
- cmake cuda在Windows上单独的编译静态LIB链接错误,但在Ubuntu上没有
- 加密蛋白使编译问题Ubuntu
- Open AL 的函数在 ubuntu 中使用 g++ 编译时给出未定义引用的错误
- 拥有LLVM IR库如何从Ubuntu将其交叉编译到iOS,Android,Windows和Mac?
- 交叉编译Ubuntu-Win7使用自定义Makefile代替qmake