Boost构建中缺少头文件 [英] Header-Files missing in boost build

查看:287
本文介绍了Boost构建中缺少头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从github存储库中克隆了当前的boost源: https://github.com/boostorg/boost包括所有引用的子存储库.

I cloned the current boost sources from the github repository: https://github.com/boostorg/boost including all referenced child repository.

我使用最新的XCode命令行工具进行了boostrap并在OS X机器上构建了源代码.构建似乎工作正常.

I did boostrap and build the sources on a OS X machine with the latest XCode command line tools. The build seems to work fine.

但是在$BOOST_ROOT/boost/目录中,头文件是从库目录链接的(例如/boost/graph/adjacency_iterator.hpp -> ../../libs/graph/include/boost/graph/adjacency_iterator.hpp),其中缺少一些头文件.例如,在./libs/graph/include/boost/graph中有一个boykov_kolmogorov_max_flow.hpp,它在构建输出中丢失.如果我调用install目标,也会发生同样的情况.标头文件在目标位置丢失.

But in the $BOOST_ROOT/boost/ directory, where the header files are linked from the library directories (e.g. /boost/graph/adjacency_iterator.hpp -> ../../libs/graph/include/boost/graph/adjacency_iterator.hpp), some of the header files are missing. For example there is an boykov_kolmogorov_max_flow.hpp in ./libs/graph/include/boost/graph which is missing in the build output. The same happens if I call the install target. The header files are missing in the destination.

我该怎么做,所有头文件都包含在构建中. 问候

What do I have to do, that all header files get included in the build. Regards

Joachim

推荐答案

您可以在文档中看到(安装模块化Boost ),您应该

As you can see in the documentation (Installing Modular Boost) you should

./bootstrap.sh
./b2 headers

在使用Modular Boost时将标题链接到包含目录

to link the headers to the include directory when using Modular Boost

这篇关于Boost构建中缺少头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆