2017-06-13 124 views
0

在项目config.jam中,我看到一行升压不是所有建设图书馆

$ 
# List of --with-<library> and --without-<library>$ 
# options. If left empty, all libraries will be built.$ 
# Options specified on the command line completely$ 
# override this variable.$ 
libraries = ;$ 

,仍然

bootstrap.sh --prefix=/my/target/location/ 
./b2 install 

不建的所有库。仅下面的一个:

Component configuration: 

- atomic     : building 
- chrono     : building 
- container    : building 
- context     : building 
- coroutine    : building 
- coroutine2    : building 
- date_time    : building 
- exception    : building 
- fiber     : building 
- filesystem    : building 
- graph     : building 
- graph_parallel   : building 
- iostreams    : building 
- locale     : building 
- log      : building 
- math      : building 
- metaparse    : building 
- mpi      : building 
- program_options   : building 
- python     : building 
- random     : building 
- regex     : building 
- serialization   : building 
- signals     : building 
- system     : building 
- test      : building 
- thread     : building 
- timer     : building 
- type_erasure    : building 
- wave      : building 

我所面临的问题,becaues circular_buffer心不是在组件中可用。

+0

这些美元符号是否存在于实际文件中?他们不应该,而且之后应该有一堆其他的'option.set'行。 – gavinb

回答

0

并非所有的Boost组件都需要内置到库中 - 很多都是“仅标头”,因此整个实现在.hpp文件中定义。

它看起来像上面的组件列表只是那些需要相应的库,这是'构建'步骤正在做的事情。

运行安装脚本并验证目标中是否存在include/boost/circular_buffer.hpp,因为这确实是仅包含标头的组件。

+0

include/boost/circular_buffer.hpp位于源代码(boost)中,但不是我使用--prefix定义的目标。也许./b2不会将所有内容复制到目标中?我怎样才能强制安装脚本来做到这一点? – infoclogged

+0

显示“Component Build:”行后,您应该看到大量行显示“common.copy ”,其中一行应该是“.../include/boost/circular_buffer.hpp”。我刚刚下载了t骨,运行了上面列出的相同的两个命令,并验证了循环缓冲区头部确实已安装到目标文件夹中。应该不需要强制任何东西。上述内容后打印什么? – gavinb

+0

它不存在。 http://rn0.me/show/RKxd0TZk8bs4iQLYeehA/。 – infoclogged