`
estn_h
  • 浏览: 13707 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

google proto buffer 安装

阅读更多
听说google proto buffer(以下简称protobuf)已经很久了,但是一直没有尝试使用它。其中一个原因是,项目组自己写了个打包和解包的工具,而且代码也简单,可以很方便的扩展到自动生成xml之类的配置文件,已经能很好的符合项目的需要。但是最近发现protobuf有个很不错的功能,就是可以向已有的协议中添加新的字段,而不影响采用旧协议的服务。所以就想试试protobuf。

  要使用google proto buffer,首先要进行的就是安装,先说说我的(mac os X 10.7.2)安装过程吧:
  1、下载google proto buff。
  2、解压下载的包,并且阅读README.txt,根据里面的指引进行安装。
  3、 $ ./configure
    $ make
    $ make check
    $ make install
    没有意外的话,前面三步应该都能顺利完成,第四步的时候,需要root权限。我采用的默认的路径,所以,仅仅用root权限,还是安装不了,要自己先在/usr/local下新建一个lib的目录,然后执行make install,这样,应该就能顺利安装google proto buffer了。
分享到:
评论

相关推荐

    Google Protocol Buffer的2.5.jar和 proto.exe 和IDEA的Proto插件

    关于 Google Protocol Buffer的2.5.jar和 proto.exe 和IDEA的Proto插件。在开发中可以让你们省很多时间,直接通过IDEA编译Proto文件,超级方便

    protocol buffers 官网中文教程

    google protocol buffers 官网中文教程

    proto3文档介绍

    This guide describes how to use the protocol buffer language to structure your protocol buffer ...syntax, see the Proto2 Language Guide (https://developers.google.com/protocol-buffers/docs/proto).

    proto_db-master.zip

    proto_db-master.zip proto_db-master.zip proto_db-master.zip 一个基于google protocol buffer 的orm

    已经编译好的protoc可执行命令文件,可将.proto转为.proto.h和.proto.m文件,在iOS和Mac开发中解析Google Protobuf数据

    Protobuf是Google公司内部的混合语言数据标准,全称是Google Protocol Buffer,Protobuf是一种更小、更快、更简单的结构化数据存储格式,可用于序列化返回数据,目前已经支持生成Java,Python,Objective-C,C++代码...

    erlang-protobuffs

    听说google proto buffer(以下简称protobuf)已经很久了,但是一直没有尝试使用它。其中一个原因是,项目组自己写了个打包和解包的工具,而且代码也简单,可以很方便的扩展到自动生成xml之类的配置文件,已经能很好...

    go-protoparser:另一个Go包,用于解析协议缓冲区文件(proto2 + proto3)

    原型解析器 go-protoparser是另一个Go包,用于解析协议缓冲区文件(proto2 + proto3)。 符合确切的 。 经过严格的测试。...// See https://developers.google.com/protocol-buffers/docs/reference/proto3

    protoc-3.9.1-osx-x86_64.zip

    假如您在网上搜索,应该会得到类似这样的文字介绍: Google Protocol Buffer( 简称 Protobuf) 是 Google 公司内部的混合语言数据标准,目前已经正在使用的有超过 48,162 种报文格式定义和超过 12,183 个 .proto ...

    使用Go基于WebSocket开发的web聊天应用

    # gochat ...- 通讯协议Google的proto buffer - 消息队列kafka - makefile 的编写 - 数据库MySQL - 图片文件二进制操作 ## 快速运行 ### 运行go程序 go环境的基本配置 ... 进入目录 ```shell cd gochat

    proto3.6.1(window64位)与protobuf-java-3.6.1

    protocolbuffer(以下简称PB)是google 的一种数据交换的格式,它独立于语言,独立于平台。google 提供了多种语言的实现:java、c#、c++、go 和 python,每一种实现都包含了相应语言的编译器以及库文件。由于它是一种...

    protoc-3.0.0-beta-1-win32.zip

    Google Protocol Buffer( 简称 Protobuf) 是 Google 公司内部的混合语言数据标准。他们用于 RPC 系统和持续数据存储系统。提供一个具有高效的协议数据交换格式工具库(类似Json)。 但相比于Json,Protobuf有更高的...

    谷歌protobuf代码生成工具

    protocolbuffer(以下简称PB)是google 的一种数据交换的格式,它独立于语言,独立于平台 提供了多种语言的实现:java、c#、c++、go 和 python,是一种效率和兼容性都很优秀的二进制数据传输格式,可以用于诸如网络...

    Protobuf协议快速入门指南(一个小时入门protobuf)

    Google Protocol Buffer( 简称 Protobuf) 是 Google 公司内部的混合语言数据标准,目前已经正在使用的有超过 48,162 种报文格式定义和超过 12,183 个 .proto 文件。他们用于 RPC 系统和持续数据存储系统。 Protocol...

    protobuf-3.8.0 VS2015含32位和64位lib和头文件

    Google Protocol Buffer( 简称 Protobuf) 是 Google 公司内部的混合语言数据标准,目前已经正在使用的有超过 48,162 种报文格式定义和超过 12,183 个 .proto 文件。他们用于 RPC 系统和持续数据存储系统。 Protocol...

    protobuf生成器(C++)

    Google开源库protocol buffer C++批量生成工具,可以将.proto文件批量生成为C++源文件,供C++程序使用。

    protoc-3.9.1-linux-x86_64.zip

    Google Protocol Buffer( 简称 Protobuf) 是 Google 公司内部的混合语言数据标准,目前已经正在使用的有超过 48,162 种报文格式定义和超过 12,183 个 .proto 文件。他们用于 RPC 系统和持续数据存储系统。 ...

    Google Protobuffer C#

    Google Protocol Buffer( 简称 Protobuf) 是 Google 公司内部的混合语言数据标准,目前已经正在使用的有超过 48,162 种报文格式定义和超过 12,183 个 .proto 文件。他们用于 RPC 系统和持续数据存储系统。Protocol ...

    google protobuf-中英文使用手册

    protocol buffer ( 中英文使用手册) 已经检查过的了,赚点积分请见谅,评论过后积分就回来的了!

    Google Protocol Buffers 源码

    Then you compile it with protoc, the protocol buffer compiler, to produce code in C++, Java, or Python. Then, if you are using C++, you use that code like this: Person person; person.set_id(123); ...

    google protobuf 源码

    Then you compile it with protoc, the protocol buffer compiler, to produce code in C++, Java, or Python. Then, if you are using C++, you use that code like this: Person person; person.set_id(123); ...

Global site tag (gtag.js) - Google Analytics