环境信息:
1、操作系统:centos7.4
2、g++版本:4.8.5
grpc v1.29.1 版本 源码下载:(因为国内现在访问github速度很慢,这里用了代理镜像)
git clone -b v1.29.1 https://hub.xn--gzu630h.xn--kpry57d/grpc/grpc.git
配套三方依赖库下载:
cd grpc
git submodule update --init
具体依赖的三方库信息可以通过以下方式查看:
cd grpc
vim .gitmodules
[submodule "third_party/zlib"]
path = third_party/zlib
url = https://hub.xn--gzu630h.xn--kpry57d/madler/zlib
# When using CMake to build, the zlib submodule ends up with a
# generated file that makes Git consider the submodule dirty. This
# state can be ignored for day-to-day development on gRPC.
ignore = dirty
[submodule "third_party/protobuf"]
path = third_party/protobuf
url = https://hub.xn--g