-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CentOS7 编译失败 #2568
Comments
可以先试下 cmake3,稍后修复。 |
@howz97 辛苦试下这个吧 diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9df7f1ef..6af29dc6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -154,7 +154,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
endif()
find_package(Protobuf REQUIRED)
-if(Protobuf_VERSION GREATER_EQUAL 4.22)
+if(Protobuf_VERSION GREATER 4.21)
# required by absl
set(CMAKE_CXX_STANDARD 17) |
`GREATER_EQUAL` was introduced since cmake 3.7 Related to #2568
感谢回复。 除了 cmake3 , protobuf3 ,还要升级到gcc8,brpc就编译过了。 编译example/redis_c++ 时 还需要 |
对应README中是不是也需要修改一下,要求protobuf 3+了,README还是写的protobuf2.4+即可... |
brpc的最低要求是gcc8么? |
现在由于引入了部分 protobuf 3 语法导致依赖 3.0+, 同时由于 protobuf 接口变更导致不兼容 3.6+, 所以最新的 protobuf 兼容的版本就是 3.0~3.25 了. 后面看下 protobuf 这部分怎么兼容比较好. |
老版本编译器对部分模版兼容比较差,编译有问题,gcc-8 测试是没问题的,最低哪个版本可以还没测试过。 |
请问,哪个版本可以用protobuf 2.5? 我只用bvar做监控上报,不需要新功能呢 |
可以试下 1.5 |
Describe the bug (描述bug)
CentOS7 编译失败
To Reproduce (复现方法)
根据文档在CentOS7执行:
得到结果
Expected behavior (期望行为)
编译通过
Versions (各种版本)
OS: CentOS7
Compiler: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
brpc: 37814d2
protobuf:
Additional context/screenshots (更多上下文/截图)
尝试用cmake 进行编译:
仍然编译失败:
The text was updated successfully, but these errors were encountered: