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)
它持续了好几行。
我想我发现了问题:
当我尝试构建 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)
这为我解决了这个问题。我很高兴听到为什么。
归档时间: |
|
查看次数: |
6133 次 |
最近记录: |