mac上编译thrift 0.8.0
来源:互联网 发布:28周四维彩超标准数据 编辑:程序博客网 时间:2024/05/17 03:06
mac上编译thrift 0.8.0
git上下载了 thrift 0.8的源码,开始编译,发现一些问题,记录一下:
1、编译报错
thrifty.h 文件找不到,确认是 automake的一个BUG,是产生的文件扩展名丛h变成了hh,参考: https://issues.apache.org/jira/browse/THRIFT-1614
以及对应的补丁:https://issues.apache.org/jira/secure/attachment/12565867/THRIFT-1838.patch
其实手工改一行就行,把 /compiler/cpp/src/thriftl.ll 里面的 #include “thrifty.h” 改成 #include “thrifty.hh”。
2、tr1/functional 找不到
我机器上安装的boost的是 functional.hpp ,补上扩展名就好。
3、openssl的include找不到
mac下安装 “brew install openssl”之后,执行 “brew link openssl –force”。会确保产生链接 /usr/local/include/openssl 。
貌似是 EI Capitan 引入的问题。
4、其它,测试代码 test/Benchmark.cpp 编译失败
说 shared_ptr ambigous , 用 boost::shared_ptr 替换 shared_ptr 就好。
这个不影响编译thrift。
其它还有错误,但是thrift的可执行文件已经可以编译出来了。
0 0
- mac上编译thrift 0.8.0
- Mac上安装Thrift
- 【thrift】cygwin上编译安装thrift中的坑
- Mac安装thrift-0.10.0
- 内网编译thrift 0.8
- Mac上编译boost
- Mac 上编译Boost
- Mac上编译boost
- mac上编译boost
- 编译thrift
- 【Thrift一】Thrift编译安装
- 在Mac上编译CURL
- 在mac上编译openssl
- Mac上编译libimobiledevice库
- 在mac上编译htk
- Mac 上编译 ffmpeg 方法
- Mac上编译opencv源码
- 在mac上编译lame
- Effective C++(条款35-38)
- linux fedora c sqlite3
- 用linux vconfig配置neutron VLAN试验
- 不看星座和属相,从你喜欢的编程语言看你是什么人
- 浅谈Android控件中的ListView优化
- mac上编译thrift 0.8.0
- tomcat集群基于redis共享session解决方案
- 通过Net::Ping 理解Perl的面向对象
- webserver报XFireFault: Unmarshalling Error: unexpected element (uri:"http://server.iflytek.com/", loc
- JavaScript
- C++入门学习笔记(四)--继承与多态
- 编译语言和解释语言(脚本)
- PPAPI插件与浏览器的通信
- VC C++ 操作 Excel 总结