使用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 'third_party/boringssl'
Submodule 'third_party/boringssl-with-bazel' (https://github.com/google/boringss

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

被折叠的 条评论
为什么被折叠?



