C++分布式框架研究(二)-grpc编译

本文介绍了在Windows环境下,如何使用Visual Studio 2015和CMake编译grpc源码。首先通过git下载grpc,切换到v1.16.1分支,接着安装必要的软件如Perl、Go、yasm和CMake。不使用boringssl的情况下,只需VS和CMake。安装完成后,使用CMake创建VS项目并编译,最终在特定目录找到编译生成的库文件和dll。
摘要由CSDN通过智能技术生成

使用git工具下载源码,我是使用小乌龟,路径是https://github.com/grpc/grpc.git。下载完成后切换分支,我使用v1.16.1

然后进入源码目录,执行

git submodule update --init

用来初始化依赖模块,相关执行信息如下:

E:\Projects\grpc>git submodule update --init
Submodule 'third_party/abseil-cpp' (https://github.com/abseil/abseil-cpp) registered for path 'third_party/abseil-cpp'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark) registered for path 'third_party/benchmark'
Submodule 'third_party/bloaty' (https://github.com/google/bloaty.git) registered for path 'third_party/bloaty'
Submodule 'third_party/boringssl' (https://github.com/google/boringssl.git) registered for path '
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值