Comments (2)
你好~srpc除了会用到protoc进行代码生成以外,编译lib期间需要依赖libprotobuf.so。
可以看看你本地的protobuf库是什么版本吗?
进一步讲述一下这个问题:snappy-1.1.9的某两个类是-no-rtti,我们派生了它们因此srpc里的rpc_compress_snappy.cc文件也是no-rtti,其他文件是没有的。但是先前有遇到过和最新版protobuf一起编译的时候,出现类似“/usr/local/include/google/protobuf/arena.h:599:15: error: cannot use ‘typeid’ with ‘-fno-rtti’ 599 | AllocHook(RTTI_TYPE_ID(T), n); |”的错误。因此才比较怀疑你的libprotobuf版本比较高。
麻烦确认下、换个适中的版本(比如3.11.4就挺好),然后再试试~
from srpc.
libprotobuf 的版本是:/usr/local/lib/libprotobuf.so.22
protobuf的可执行文件和链接库都是从git仓库源码编译的,在编译之前已经讲原有的 protobuf2 和 protofbuf3都删除了。
from srpc.
Related Issues (20)
- crt detected that the application wrote to memory after end of heap buffer HOT 4
- 🎉 srpc tools: simple generator for building Workflow and SRPC projects
- cross compile problem HOT 12
- compile problem HOT 14
- srpc_generator.exe无法使用 HOT 3
- does one service support multi function HOT 7
- Android compile problem HOT 20
- MacOS下链接找不到protobuf HOT 9
- srpc搭建http服务时, 回包如何通过JsonPrintOptions设置打印格式 HOT 4
- 要求CMake找到一个由“Snappy”提供的包配置文件,但是 CMake没有找到。 HOT 6
- docs/wiki.md第二章图片有误 HOT 1
- Srpc无法正确生成官方hbase.thrift的srpc客户端 HOT 24
- Support in API testing tool linuxsuren/api-testing HOT 7
- srpc和workflow配合使用问题 HOT 19
- 在SRPCHttpServer上启用trace上报opentelemtry功能异常 HOT 6
- 关于 RPCBuffer 中 read_back 问题 HOT 3
- 关于 RPCBuffer::cut 和 BRPC 中的 attachment 使用的问题 HOT 2
- 是否计划支持linux io_uring? HOT 3
- SRPC性能测试问题 HOT 26
- client.Echo start multi thread,how can I start only one thread? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from srpc.