流程:
1下载boost 1.58.0,解压缩
2 运行booststrap.sh,运行后,生产project-config.jam和bjam
修改project-config.jam文件,如下。注意下面语句,需要根据自己环境来配置,设置完以后,需要将该目录添加进来,同时注意空格。
如:
using gcc : : /usr/bin/aarch64-linux-gnu-gcc-5 ;
option.set prefix : /usr/bin ;
# 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 : : /usr/bin/aarch64-linux-gnu-gcc-5 ;
}
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 : /usr/local ;
option.set exec-prefix : /usr/local ;
option.set libdir : /usr/local/lib ;
option.set includedir : /usr/local/include ;
option.set prefix : /usr/bin ;
# Stop on first error
option.set keep-going : false ;
最后运行bjam