在project-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
我遇到了问题,因为组件中的circular_buffer不可用。
答案 0 :(得分:0)
并非所有Boost组件都需要构建到库中 - 许多是“仅标头”,因此整个实现在.hpp
文件中定义。
看起来上面的组件列表只是那些需要相应库的组件,这就是“构建”步骤正在做的事情。
运行安装脚本并验证目标中是否存在include/boost/circular_buffer.hpp
,因为这确实是一个仅限标题的组件。