windows安装protobuf
1. 下载源码-b 选取对应的 tag
git clone -b v3.13.0 https://github.com/protocolbuffers/protobuf.git
cd protobuf
git submodule update --init --recursive
2. cmake
下载安装 cmake,进入 protobuf 对应 cmake 目录,执行 cmake-gui
cd cmake && mkdir build && cd build && cmake-gui ..
with options,修改对应的选项,
CMAKE_INSTALL_PREFIX C:/Program Files/protobuf
protobuf_BUILD_SHARED_LIBS ON
如下图所示
编译 ALL_BUILD with VS 2017/2015,我用的VS 2017,
生成 INSTALL,动态链接库安装到 C:/Program Files/protobuf with dynamic libraries,
最终安装完成,如下图所示,
页:
[1]