微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Boost构建中断:’libboost_system.so.1.58.0’的名称冲突

我正在尝试通过以下方式进行增强源构建:
git clone --recursive https://github.com/boostorg/boost.git
cd boost
./bootstrap
./b2 link=shared threading=multi variant=release --without-mpi

这会出现以下错误消息:

error: Name clash for '<pstage/lib>libboost_system.so.1.58.0'
error: 
error: Tried to build the target twice,with property sets having 
error: these incompabile properties:
error: 
error:     -  none
error:     -  <address-model>64 <architecture>x86
error: 
error: Please make sure to have consistent requirements for these 
error: properties everywhere in your project,especially for install
error: targets.

这发生在开发和主分支上.可以做些什么来解决这个错误?提前致谢.

解决方法

我能够使用 https://stackoverflow.com/a/27885628/200985的建议进行构建.我正在编译分支boost-1.57.0,我开始编译分支boost-1.56.0,它也超过了这一点.总结一下,我跑了
git co boost-1.57.0;
./bootstrap.sh --prefix=/home/me/builds/development;
./b2 --prefix=/home/me/builds/development -j9 --without-context --without-coroutine;

原文地址:https://www.jb51.cc/c/118724.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐