ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

编译 thrift-0.14.2 的 C++ 版本

2021-09-05 10:00:21  阅读:266  来源: 互联网

标签:Building no -- Library 0.14 C++ ........ boost thrift


编译命令:

./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 。

标签:Building,no,--,Library,0.14,C++,........,boost,thrift
来源: https://www.cnblogs.com/aquester/p/15228704.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有