使用 bcp 获取可构建的 Boost 提取
我正在使用 bcp 从 Boost 中提取 Boost.Archive。不幸的是我无法构建这个摘录。 Boost.Archive 不是一个仅包含头文件的库。
bjam 抱怨
Unable to load Boost.Build: could not find "boost-build.jam"
有没有办法告诉 bcp 使提取可以使用 bjam 构建(将 boost-build.jam 复制到正确的位置)?
I'm using bcp to extract Boost.Archive from Boost. Unfortunately I can't build this extract. Boost.Archive is not a header-only library.
bjam complains
Unable to load Boost.Build: could not find "boost-build.jam"
Is there any way to tell bcp to make the extract buildable with bjam (copy boost-build.jam to the right place)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正确的位置是您提取 Boost.Archive 的目录的任何父目录(或该目录本身)。该文件应包含一行:
其中 /path/to/boost 需要适当替换。该文件告诉 bjam(低级构建引擎)从哪里加载 Boost.Build 构建系统。
然后 cd 到 libs/archive/build,并从那里调用 bjam。这将只构建档案库。
The right place would be any parent directory of the directory where you have extracted Boost.Archive (or that directory itself). That file shall contain a single line:
where /path/to/boost needs to be substituted appropriately. This file tells bjam (the low level build engine) where to load Boost.Build build system from.
Then cd to libs/archive/build, and invoke bjam from there. That would build just the Archive library.