windows下编译安装thrift

thrift工程依赖boost库,thriftnb工程依赖boost和libevent库。

编译boost

下载boost_1_67_0.zip,执行booststrap.bat,然后再执行b2.exe,编译的时间很长,需要耐心等待。

编译libevent

参考在<windows下编译libevent>

编译openssl

参考在<windows下编译openssl>

编译thrift

编译thrift过程中要把boost、openssl、libevent几个库包含进去。
windows下下面语句编译错误,max()和STL中的冲突。
maxBufferSize_ = std::numeric_limits::max();
修改为
maxBufferSize_ = (std::numeric_limits::max)();

猜你喜欢

转载自blog.csdn.net/mosee/article/details/80751179