编译boost 1.58.0 for arm-linux

下载boost 1.58.0

解压缩

运行booststrap.sh,运行后,生产project-config.jam和bjam

修改project-config.jam文件,如下

# Boost.Build Configuration
# Automatically generated by bootstrap.sh


import option ;
import feature ;


# Compiler configuration. This definition will be used unless
# you already have defined some toolsets in your user-config.jam
# file.
if ! gcc in [ feature.values <toolset> ]
{
    using gcc : : /home/xxxxxx/arm/3.4.1/bin/arm-linux-gcc ;
}


project : default-build <toolset>gcc ;


# Python configuration
using python : 2.7 : /usr ;


# List of --with-<library> and --without-<library>
# options. If left empty, all libraries will be built.
# Options specified on the command line completely
# override this variable.
libraries =  ;


# These settings are equivivalent to corresponding command-line
# options.
option.set prefix : /home/xxxxxx/arm/3.4.1 ;
option.set exec-prefix : /home/xxxxxx/arm/3.4.1/bin ;
option.set libdir : /home/xxxxxx/arm/3.4.1/lib ;
option.set includedir : /home/xxxxxx/arm/3.4.1/include ;


 /home/xxxxxx/arm/3.4.1是arm-linux-gcc编译器所在的位置,红色部分是需要修改的


最后运行bjam,生产boost for arm-linux库

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值