Boost不是构建所有库
在project-config.jam中,我看到一行Boost不是构建所有库,boost,Boost,在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 = ;$ 不生成所有
$
# 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 = ;$
不生成所有库。只有以下一项:
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
我遇到了这个问题,因为循环缓冲区在组件中不可用。并非所有的Boost组件都需要内置到库中-许多组件都是“仅头部”,因此整个实现都在
.hpp
文件中定义
看起来上面的组件列表只是那些需要相应库的组件,“构建”步骤就是这样做的
运行安装脚本并验证目标中是否存在
include/boost/circular\u buffer.hpp
,因为这确实是一个仅包含头的组件。include/boost/circular\u buffer.hpp位于源(boost)中,但不在我使用--前缀定义的目标中。也许./b2没有将所有包含复制到目标?如何强制安装脚本执行此操作?在显示“组件构建:”行之后,您应该会看到大量显示“common.copy”的行,其中一行应该是../include/boost/circular\u buffer.hpp
。我刚刚下载了tarsal,运行了上面列出的两个命令,并验证了循环缓冲区头确实安装到了目标文件夹中。应该没有必要强迫任何事情。在上述操作之后会打印什么?我确信,文件正在被跳过。我看到boost/filesystem.hpp也没有被复制。请查看pastebin。pastebin不显示整个会话的输出。使用script
命令将所有内容捕获到文件中,然后从头开始。删除目标文件夹并清理所有生成产品。然后启动捕获会话,运行bootstrap命令,然后运行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