gRPC CentOS 编译安装

2019-03-15 10:17:29

参考官方文档:

https://github.com/grpc/grpc/blob/master/BUILDING.md#build-from-source

 

先取源码:

 $ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc
 $ cd grpc
 $ git submodule update --init


切换到高版本gcc
scl enable devtoolset-9 bash

cmake编译
$ mkdir -p cmake/build
$ cd cmake/build
$ cmake ../..
$ make

 

在低版本gcc环境下使用的问题:
https://github.com/grpc/grpc/issues/10036

 

不同版本Gcc 混合编译时问题处理:
https://www.cnblogs.com/axjlxy/p/15576044.html

 

使用示例
https://grpc.io/docs/languages/cpp/quickstart/
https://www.cnblogs.com/embedded-linux/p/11787696.html
https://www.cnblogs.com/xuelisheng/p/10316431.html