ARM 交叉编译 boost 1.69.0

bjo*_*ude 6 boost arm cross-compiling beagleboneblack

尝试在 WSL Debian 中交叉编译 boost 1.69.0 我在没有 icu 或 python 支持的情况下运行 bootstrap.sh 。添加后

使用 gcc:arm:arm-linux-gnueabihf-g++;

运行时出现project-config.jam以下错误./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
Run Code Online (Sandbox Code Playgroud)

它持续了好几行。

  1. 那里出了什么问题?
  2. 由于我无法直接在目标系统上构建,因为它没有足够的硬盘,您建议如何解决此错误?
  3. 是否有我不知道的预编译 libboost 1.69?

bjo*_*ude 3

我想我发现了问题:

当我尝试构建 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 \
Run Code Online (Sandbox Code Playgroud)

这为我解决了这个问题。我很高兴听到为什么。