简体   繁体   English

如何安装Modular Boost?

[英]How to install Modular Boost?

Because I need to test some experimental features of Boost, I would like to install Boost from the Modular Boost repository. 因为我需要测试Boost的一些实验性功能,所以我想从Modular Boost存储库安装Boost。

I followed the instructions on https://svn.boost.org/trac/boost/wiki/TryModBoost and the b2 command failed: 我按照https://svn.boost.org/trac/boost/wiki/TryModBoost上的说明操作,b2命令失败:

./b2 headers
/home/wichtounet/src/modular-boost/tools/build/src/build/feature.jam:493: in feature.validate-value-string from module feature
error: "none" is not a known value of feature <optimization>
error: legal values: "off" "speed" "space"
/home/wichtounet/src/modular-boost/tools/build/src/build/property.jam:273: in validate1 from module property
/home/wichtounet/src/modular-boost/tools/build/src/build/property.jam:299: in property.validate from module property
/home/wichtounet/src/modular-boost/tools/build/src/tools/builtin.jam:377: in variant from module builtin
/usr/share/boost-build/site-config.jam:9: in modules.load from module site-config
/home/wichtounet/src/modular-boost/tools/build/src/build-system.jam:249: in load-config from module build-system
/home/wichtounet/src/modular-boost/tools/build/src/build-system.jam:351: in load-configuration-files from module build-system
/home/wichtounet/src/modular-boost/tools/build/src/build-system.jam:524: in load from module build-system
/home/wichtounet/src/modular-boost/tools/build/src/kernel/modules.jam:289: in import from module modules
/home/wichtounet/src/modular-boost/tools/build/src/kernel/bootstrap.jam:139: in boost-build from module
/home/wichtounet/src/modular-boost/boost-build.jam:17: in module scope from module

I tried adding optimization=speed on the command line, but it didn't changed a thing. 我尝试在命令行上添加optimization = speed,但它没有改变任何东西。 I tried the master and develop branches. 我尝试了主人并开发了分支机构。 I tried with clang and gcc toolset. 我尝试使用clang和gcc工具集。

Does someone has an idea how to install Modular Boost ? 有人知道如何安装Modular Boost吗?

Is there some configuration that is necessary (and where) ? 是否有一些必要的配置(以及在哪里)? Or is there another procedure to follow ? 或者还有其他程序要遵循?

EDIT: It seems that it comes from the /usr/share/boost-build/site-config.jam file that is probably installed by Gentoo. 编辑:它似乎来自可能由Gentoo安装的/usr/share/boost-build/site-config.jam文件。 I need to be able to tell b2 to ignore this file. 我需要告诉b2忽略这个文件。

I turned out that this was caused by a Gentoo configuration file. 我发现这是由Gentoo配置文件引起的。 I just had to ignore the file with: 我只需要忽略该文件:

./b2 --ignore-site-config 

I use modular boost to get all revisions of boost at my fingertips. 我使用模块化的提升来获得所有的升级版本,触手可及。 Together with ccache I can just switch the boost library version at a whim and I use this procedure for this: ccache一起,我可以随心所欲地切换boost库版本,我使用此过程:

export BOOST_VER=boost-1.55.0
git checkout --force "$BOOST_VER"
git submodule foreach 'git checkout --force "$BOOST_VER" || true'

./bootstrap.sh && ./b2 headers

That's after initial cloning as per the documentation: 这是在按照文档进行初始克隆之后:

git clone --recursive git@github.com:boostorg/boost.git modular-boost

My system is 我的系统是

Linux desktop 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.10
Release:    13.10
Codename:   saucy

git version 1.8.3.2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM