找回密码
 立即注册
查看: 256|回复: 0

grpc compile & install on Mac

[复制链接]
发表于 2022-3-29 11:44 | 显示全部楼层 |阅读模式
https://www.shenhongbang.cc/gPRCForMac.html
这个链接些的特别清楚
1) 下载grpc 代码
$ git clone --recurse-submodules -b v1.45.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc
2)安装 abseil
、、、
cd third_party/abseil-cpp
cmake . -DABSL_RUN_TESTS=ON -DABSL_USE_GOOGLETEST_HEAD=ON -DCMAKE_CXX_STANDARD=11
make
make install
、、、
3)安装protobuf3
、、、
cd third_party/protobuf
./autogen.sh //运行脚本(此处需FQ,加载资源);
./configure //运行脚本;
make //编译;
make check //检查依赖包是否完整,终端会输出7个检查项,都显示pass即可;
make install //安装PB;
protoc --version //不报错,输出版本信息,即可
、、、
4)编译 gRPC
、、、
cd grpc  的目录
make
make install

、、、
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2025-5-8 03:55 , Processed in 0.134540 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表