mac下编译google buffer3.0

1:用git 把google buffer源码从github上拉下来,网络不好的请自行修改host改成最新的

2:编译,先装c++得编译器

注意:  . /autogen.sh,一开始楼主没有运行这个命令,直接运行./configure ,一直没有反应,找了N多文章,浪费了一天时间,


按照下面的命令 1:./autogen.sh 2:make 3:make check 4:sudo make install  ;


make install 通过之后记得查看一下是否安装成功:protoc --version   ,出现版本号就ok了,否则继续 sudo make install 

 

C++ Installation - Unix

If you get the source from github, you need to generate the configure script first:

$ ./autogen.sh

This will download gmock source (which is used for C++ Protocol Buffer unit-tests) to the current directory and run automake, autoconf, etc. to generate the configure script and various template makefiles.

You can skip this step if you are using a release package (which already contains gmock and the configure script).

To build and install the C++ Protocol Buffer runtime and the Protocol Buffer compiler (protoc) execute the following:

$ ./configure
$ make
$ make check
$ make install

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值