岚天逸见

编译 thrift-0.14.2 的 C++ 版本

编译命令:

./configure --prefix=/usr/local/thrift-0.14.2 --with-cpp=yes --with-php=no --with-python=no --with-qt5=no --with-c_glib=no --with-java=no --with-erlang=no --with-nodejs=no --with-nodets=no --with-lua=no --with-py3=no --with-perl=no --with-php_extension=no --with-dart=no --with-ruby=no --with-haskell=no --with-go=no --with-rs=no --with-swift=no --with-cl=no --with-haxe=no --with-netstd=no --with-d=no --enable-tests=no --with-as3=no --with-libevent=/usr/local/libevent --with-openssl=/usr/local/openssl --with-boost=/usr/local/boost

执行 configure 成功:

thrift 0.14.2

Building ActionScript3 Library : no
Building C (GLib) Library .... : no
Building C++ Library ......... : yes
Building Common Lisp Library.. : no
Building D Library ........... : no
Building Dart Library ........ : no
Building .NET Standard Library : no
Building Erlang Library ...... : no
Building Go Library .......... : no
Building Haskell Library ..... : no
Building Haxe Library ........ : no
Building Java Library ........ : no
Building Lua Library ......... : no
Building NodeJS Library ...... : no
Building Perl Library ........ : no
Building PHP Library ......... : no
Building Python Library ...... : no
Building Py3 Library ......... : no
Building Ruby Library ........ : no
Building Rust Library ........ : no
Building Swift Library ....... : no

C++ Library:
   C++ compiler .............. : g++ -std=c++11
   Build TZlibTransport ...... : yes
   Build TNonblockingServer .. : yes
   Build TQTcpServer (Qt5) ... : no
   C++ compiler version ...... : g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)

注意

执行 configure 时需要指定参数:--with-boost=/usr/local/boost,虽然 0.14.2 版本的运行时库并不依赖 boost,只有测试用例依赖 boost,但如果不指定则不会生成 C++ 版本的库。另外只有指定了 libevent,才会生成库 libthriftnb.a 。

posted on   岚天逸见  阅读(235)  评论(0编辑  收藏  举报

编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
历史上的今天:
2019-09-05 进一步理解指针:一维数组和二维数组转换
2019-09-05 进一步理解指针2:双指针、指针数组和数组指针
2019-09-05 彻底理解C++指针
2019-09-05 如何安全地使用redis的pop命令

导航

统计信息

点击右上角即可分享
微信分享提示