您的位置:首页 > 运维架构 > Linux

编译boost 1.58.0 for arm-linux

2016-09-02 15:03 671 查看
下载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库
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: