Getting a buildable Boost extract with bcp

大兔子大兔子 提交于 2019-12-03 13:59:07

问题


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)?


回答1:


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:

boost-build /path/to/boost/tools/build/v2 ;

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.



来源:https://stackoverflow.com/questions/3626625/getting-a-buildable-boost-extract-with-bcp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!