thrift依赖openssl和zlib、libevent等库
1、以来zlib、libevent库(比较简单,略)
2、编译openssl库
参考https://blog.csdn.net/clirus/article/details/50151427
3、编译thrift库
下载0.9.1版本
tar -zxvf xxx
cd thrift-0.9.1
./configure --host=mips64el-redhat-linux CXX=mips64el-redhat-linux-g++ CC=mips64el-redhat-linux-gcc --prefix=/usr/mips/thrift --with-libevent=/usr/mips/libevent --with-zlib=/usr/mips/zlib CCFLAGS="-I/home/toolchain/cross-tools/gcc-4.4.7-7215-n64-loongson/usr/mips64el-redhat-linux/sysroot/usr/include"
打开configure,修改成不进行测试,因为是交叉编译环境,不支持测试

本文档详细介绍了如何在交叉编译环境中编译适用于MIPS平台的Thrift库,包括依赖库如zlib、libevent和openssl的编译步骤,以及在编译Thrift时遇到的问题和解决方法,如修改configure文件、config.h文件和Makefile文件。


最低0.47元/天 解锁文章
1028

被折叠的 条评论
为什么被折叠?



