gcc-3.4编译google protocol buffer 2.4.0a
来源:互联网 发布:ubuntu 搜索软件包 编辑:程序博客网 时间:2024/05/20 08:42
gcc 3.4是比较老的编译器,用它来编译最新版protobuf 2.4.0a的话,可能会有如下错误:
google/protobuf/descriptor.cc: In member function `virtual const google::protobuf::FieldDescriptor* google::protobuf::DescriptorBuilder::OptionInterpreter::AggregateOptionFinder::FindExtension(google::protobuf::Message*, const std::string&) const':
./google/protobuf/descriptor.h:1152: error: `google::protobuf::internal::Mutex*google::protobuf::DescriptorPool::mutex_' is private
google/protobuf/descriptor.cc:4341: error: within this context
./google/protobuf/descriptor.h:1152: error: `google::protobuf::internal::Mutex*google::protobuf::DescriptorPool::mutex_' is private
google/protobuf/descriptor.cc:4342: error: within this context
make[2]: *** [descriptor.lo] Error 1
make[2]: Leaving directory `/home/liangry/download/protobuf-2.4.0a/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/liangry/download/protobuf-2.4.0a'
make: *** [all] Error 2
需打上以下补丁:
在protobuf-2.4.0a编译目录下,把上述内容保存为protobuf_gcc3.4.patch,然后输入以下命令即可。
$ patch -p0 < protobuf_gcc3.4.patch
patching file ./src/google/protobuf/descriptor.cc
参考文章:http://code.google.com/p/protobuf/source/detail?r=380#
- gcc-3.4编译google protocol buffer 2.4.0a
- Android NDK下编译google protocol buffer
- Google Protocol Buffer安装编译及使用
- 使用NDK编译Google Protocol Buffer
- Google-Protocol Buffer例子编译问题
- 在编译Google protocol buffer时遇到的编译问题
- Google Protocol Buffer
- Protocol Buffer(Google) 學習筆記一
- google protocol buffer
- Google Protocol Buffer
- Google Protocol Buffer
- Google Protocol Buffer
- Google Protocol Buffer 用法
- 【Google Protocol Buffer】概览
- Google Protocol Buffer 学习
- Google Protocol Buffer 学习
- Google Protocol Buffer
- Google Protocol Buffer 介绍
- android内存泄露的问题
- 两分钟搞定android JNI
- 关于Iterator的用法收集
- 多写点博客
- s60 5版程序在symbian 3适配,升级,编译
- gcc-3.4编译google protocol buffer 2.4.0a
- Javascript中string转date
- Android map
- _FILE__,__LINE__,FUNCTION__实现代码跟踪调试
- 安装redmine日志
- PCR正常跳变的处理
- struts2之使用JSON插件实现Ajax(JSON基本知识)
- 殇
- linux 下内核2.6.35 skb_copy_bits 函数和map.c文件