facebook folly 编译脚本 dirlt的文章:编译folly

本文档提供了在Ubuntu 12.04 64位环境下编译Facebook Folly库的详细步骤,包括所需依赖库的安装及解决编译过程中遇到的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

www.cnblogs.com

facebook folly编译脚本

2012-06-23 22:19 by zhenjing, ... 阅读, ... 评论, 收藏, 编辑

folly in github https://github.com/facebook/folly
autoconf,autmake使用详解 http://www.laruence.com/2009/11/18/1154.html

folly库中的README有关于库依赖第三方库的详细说明,其中double-conversion需要特殊编译。

  Ubuntu 12.04 64-bit
    - g++
    - automake
    - autoconf
    - autoconf-archive
    - libtool
    - libboost1.46-all-dev
    - libgoogle-glog-dev
        This package has been removed from 12.04 -- use the one from 11.10
    - gflags (packages need to be downloaded from below)
        http://gflags.googlecode.com/files/libgflags-dev_2.0-1_amd64.deb
        http://gflags.googlecode.com/files/libgflags0_2.0-1_amd64.deb
    - scons (for double-conversion)

1) 安装工具和库,直接大多可以直接从Ubuntu软件包从安装。比如:sudo apt-get install libboost1.46-all-dev; sudo apt-get install scons。

2)编译double-conversion。所有工具均安装后,需要先编译double-conversion。

3)编译和安装folly:写了个脚本直接在folly目录下运行脚本即可。

#!/bin/sh

if [ $# != 1 ]
then
    echo "Usage: $0 double-conversion_path"
    exit●
fi

DOUBLE_CONV_DIR=$1
echo "double-conversion_path: $DOUBLE_CONV_DIR"

aclocal
autoreconf      # must use autoreconf. autoconf has some problem!
automake --force-missing --add-missing

LDFLAGS="-L$DOUBLE_CONV_DIR" CPPFLAGS="-I$DOUBLE_CONV_DIR/src " ./configure --
enable-static --disable-shared

make
make install

自己在编译过程中,碰到的最大问题就是autoconf和automake不熟,碰到了些问题,感谢dirlt的文章:编译folly

希望后来者编译顺利,少花些时间。

注:Ubuntu的版本:11.10; gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值