Chinaunix首页 | 论坛 | 博客
  • 博客访问: 30103951
  • 博文数量: 230
  • 博客积分: 2868
  • 博客等级: 少校
  • 技术积分: 2223
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-08 21:48
个人简介

Live & Learn

文章分类

全部博文(230)

文章存档

2022年(2)

2019年(5)

2018年(15)

2017年(42)

2016年(24)

2015年(13)

2014年(1)

2012年(5)

2011年(58)

2010年(56)

2009年(9)

我的朋友

分类: 其他平台

2018-11-13 15:16:44

1 得到grpc源码
    git clone
    cd grpc
   # 切换到 Release 1.11.0 的版本号:
    git reset --hard bd44e48
    # 获取 third_party/ 下的依赖包的源码
    git submodule update --init
2 编译Protobuff
   1 修过grpc\third_party\protobuf\autogen.sh
     # Check that gmock is present.  Usually it is already there since the
    # directory is set up as an SVN external.
   #if test ! -e gmock; then
  #  echo "Google Mock not present.  Fetching gmock-1.7.0 from the web..."
#  curl $curlopts -L -O
#  unzip -q release-1.7.0.zip
#  rm release-1.7.0.zip
#  mv googlemock-release-1.7.0 gmock
#fi


#if test ! -e gmock/gtest; then
#  curl $curlopts -L -O
#  unzip -q release-1.7.0.zip
#  rm release-1.7.0.zip
#  mv googletest-release-1.7.0 gmock/gtest
#fi
   原因是如果gmock,在线需要VPN,我没有,我就下载 gmock-1.7.0到Protobuff下 grpc\third_party\protobuf\gmock
2../autogen.sh
3.
./configure
4.make && make check && sudo make install && sudo ldconfig
  这里有个错误,gmock没有Makefile,cd gmock-->./configure,重新编译





阅读(4199) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~