【发布时间】:2022-12-06 13:57:11
【问题描述】:
在尝试为我的项目创建跨平台构建系统时,我在从 Conancenter 获取 boost 库时遇到了以下问题:
这是安装命令+配置
-- Conan executing: conan install /Users/me/myproj/conan.py --remote conancenter --build missing --settings build_type=Release --settings compiler=apple-clang --settings compiler.version=13.1 --settings compiler.libcxx=libc++
Configuration:
[settings]
arch=armv8
arch_build=x86_64
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=13.1
os=Macos
os_build=Macos
[options]
[build_requires]
[env]
这是我遇到的错误:
boost/1.79.0: WARN: Boost component 'stacktrace_addr2line' is missing libraries. Try building boost with '-o boost:without_stacktrace_addr2line'. (Option is not guaranteed to exist)
boost/1.79.0: WARN: Boost component 'stacktrace_backtrace' is missing libraries. Try building boost with '-o boost:without_stacktrace_backtrace'. (Option is not guaranteed to exist)
ERROR: boost/1.79.0: Error in package_info() method, line 1664
raise ConanException("These libraries were expected to be built, but were not built: {}".format(non_built))
ConanException: These libraries were expected to be built, but were not built: {'boost_stacktrace_backtrace', 'boost_stacktrace_addr2line'}
知道如何解决吗?
【问题讨论】:
-
是否有更详细的构建日志;看起来某个组件的编译失败了,所以应该有一个编译日志?
-
如果你正在做交叉建设,推荐的现代方式是使用“build”和“host”配置文件,比如
--profile:build=default --profile:host=myarmprofile