编译boost 1.58.0 for arm-linux

ARM 104浏览

下载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库