grpc php plugin 源码编译(windows)grpc_php_plugin.exe
1:下载cmake 国内下载地址 https://cmake.org/files/v3.25/
2: choco install nasm
3: git
4: virtual studio 2022 (需要选择cmake c++ 支持 以及选择windows11 sdk支持)
操作步骤
1:下载代码
$ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc $ cd grpc $ git submodule update --init
2:编译
> @rem Run from grpc directory after cloning the repo with --recursive or updating submodules. > md .build > cd .build > cmake .. -G "Visual Studio 17 2022" > cmake --build . --config Release
3:使用
cd Release
参考: https://github.com/grpc/grpc/blob/master/BUILDING.md