交叉编译boost 1.69.0 for ARM
Cross-compiling boost 1.69.0 for ARM
尝试在没有 icu 或 python 支持的情况下在 WSL Debian I 运行 bootstrap.sh 中交叉编译 boost 1.69.0。添加后
using gcc : arm : arm-linux-gnueabihf-g++ ;
到project-config.jam
运行ning ./b2 install
时出现以下错误
Performing configuration checks
- default address-model : 32-bit
- default architecture : arm
error: No best alternative for libs/context/build/asm_sources
next alternative: required properties: <abi>aapcs <address-model>32 <architecture>arm <binary-format>elf <threading>multi <toolset>clang
not matched
它持续了几行。
- 那里出了什么问题?
- 因为我不能直接在目标系统上构建,因为它没有足够的硬盘,你建议如何处理这个错误?
- 有没有我不知道的预编译 libboost 1.69?
我想我发现了问题:
当我尝试构建 boost 时,我尝试构建所有内容。我玩了一段时间并得出以下调用 b2 的参数:
./b2 --prefix=~/boostForBBB/ \
--without-context \
--without-coroutine \
--without-fiber \
--without-python \
--address-model=32 \
--stagedir=~/boostForBBBstage-arm-gnueabihf-g++/ \
-j3 \ #here you should obviously write how many cores you want to build on
-toolset=arm-linux-gnueabihf-g++ \
-threading=multi \
这对我来说已经解决了。不过,我很乐意听到原因。
尝试在没有 icu 或 python 支持的情况下在 WSL Debian I 运行 bootstrap.sh 中交叉编译 boost 1.69.0。添加后
using gcc : arm : arm-linux-gnueabihf-g++ ;
到project-config.jam
运行ning ./b2 install
Performing configuration checks
- default address-model : 32-bit
- default architecture : arm
error: No best alternative for libs/context/build/asm_sources
next alternative: required properties: <abi>aapcs <address-model>32 <architecture>arm <binary-format>elf <threading>multi <toolset>clang
not matched
它持续了几行。
- 那里出了什么问题?
- 因为我不能直接在目标系统上构建,因为它没有足够的硬盘,你建议如何处理这个错误?
- 有没有我不知道的预编译 libboost 1.69?
我想我发现了问题:
当我尝试构建 boost 时,我尝试构建所有内容。我玩了一段时间并得出以下调用 b2 的参数:
./b2 --prefix=~/boostForBBB/ \
--without-context \
--without-coroutine \
--without-fiber \
--without-python \
--address-model=32 \
--stagedir=~/boostForBBBstage-arm-gnueabihf-g++/ \
-j3 \ #here you should obviously write how many cores you want to build on
-toolset=arm-linux-gnueabihf-g++ \
-threading=multi \
这对我来说已经解决了。不过,我很乐意听到原因。