目录
1.准备工作
a. 下载protobuf,下载地址:protobuf github网址,国内网站现在github上的东西,很不稳定,建议配置SSH,进行下载b. protobuf下载到本地后,进入文件夹“third_party”,
b. 使用同样的方式区github上,下载protobuf依赖的第三方库googletest,下载地址:googletest
c. 下载zlib,下载网址:zlib,下载后和“third_party”放在同一级目录下
2.编译zlib
编译脚本如下,可按自己的环境进行更改,名为为bat
@echo "build zlib art"
set vs="D:\Software\VS2019\Install\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
set OUT="E:\Learnig\C++\GitHub\protobuf\zlib-1.2.11\out"
cd "E:\Learnig\C++\GitHub