试图在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
它持续了好几行。
答案 0 :(得分:0)
我想我找到了问题:
当我尝试构建增强时,我试图构建所有这些。我玩了一段时间,并得出以下参数来调用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 \
这为我解决了。我很高兴听到为什么。