安装Google protobuf

来源:互联网 发布:商城数据统计公式 编辑:程序博客网 时间:2024/05/16 12:13

最近使用tiny-dnn模型,需要安装protobuf


1.通过github下载protobuf https://github.com/google/protobuf.git;并解压,并在同级目录下新建文件夹install;


2.下载gmock,我下的是gmock-1.7.0.zip



3.在D:\protobuf\protobuf-master\cmake下新建build文件夹,然后在其下新建solution文件夹;


4.然后在solution下,使用camke (docs下):

cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=../../../../install ../..

然后会生成protobuf.sln解决方案


5.生成解决方案


6.编译install,会在上面的install文件中生成bin,include,lib文件

结束。

原创粉丝点击