- Published on
Building Boost C++ for Intel Edison
- Authors

- Name
- Daisuke Kobayashi
- https://twitter.com
Building b2
Build b2 with the regular Linux gcc.
$ cd boost_1_60_0
$ ./bootstrap.sh
Building Boost
Build Boost itself with the cross-compiler for Edison. Assume that the cross-compiler is installed under ~/intel-edison/bin/poky-edison/1.7.2. Before building, modify project-config.jam as shown below.
--- project-config_default.jam 2016-02-17 23:49:21.835309000 +0900
+++ project-config.jam 2016-02-18 00:13:20.635252000 +0900
@@ -9,7 +9,10 @@ import feature ;
# file.
if ! gcc in [ feature.values <toolset> ]
{
- using gcc ;
+ using gcc : i586
+ : i586-poky-linux-g++
+ : <compileflags>--sysroot=/home/daisuke/intel-edison/bin/poky-edison/1.7.2/sysroots/core2-32-poky-linux
+ ;
}
project : default-build <toolset>gcc ;
@@ -18,7 +21,10 @@ project : default-build <toolset>gcc ;
import python ;
if ! [ python.configured ]
{
- using python : 2.7 : /usr ;
+ using python : 2.7
+ : /home/daisuke/intel-edison/bin/poky-edison/1.7.2/sysroots/x86_64-pokysdk-linux/usr
+ : /home/daisuke/intel-edison/bin/poky-edison/1.7.2/sysroots/core2-32-poky-linux/usr/include/python2.7
+ ;
}
Before running b2, enable the Edison cross-compiler environment variables and build.
$ (source ~/intel-edison/bin/poky-edison/1.7.2/environment-setup-core2-32-poky-linux && ./b2 install -j2 --prefix=./stage)
$ objdump -f ./stage/lib/libboost_atomic.a
書庫 ./stage/lib/libboost_atomic.a 内:
lockpool.o: ファイル形式 elf32-i386
アーキテクチャ: i386, フラグ 0x00000011:
HAS_RELOC, HAS_SYMS
開始アドレス 0x00000000