2013-07-22 19 views
1

理论上,需要使用b2来构建助推器。在我的情况下,与b2 --build-dir=c:\boost\ --toolset=msvc complete stage当“b2”不起作用时,我该如何构建Boost

这将产生一个警告the --build-dir option was specified but Jamroot at '.' specified no project id the --build-dir option will be ignored(看起来无害的),然后是致命的通知[原文]`

could not find main target complete 
assuming it is a name of file to create. 
could not find main target stage 
assuming it is a name of file to create. 

显然目标已被重命名。什么是建立正确的目标?

谷歌搜索只发现几个点击,没有在当前(1.54.0)增强版本。

+4

你可以尝试使用'b2 --build-dir = c:\ boost \ toolset = msvc --build-type = complete stage'?我怀疑这个问题是由于你使用'complete'。您需要从包含'boost','doc','libs','more'等的目录中执行此操作。 – llonesmiz

+0

@cv_and_he:+1,看起来好多了。 – MSalters

回答

2

公认的目标名称取决于构建类型。由于命令行缺少--buildtype=,因此下一个标记complete被错误地解释为目标并且无法识别。下一个标记stage是一个目标,但未被识别,因为buildtype未设置。

相关问题