当"b2"不起作用时如何构建提升

How do I build Boost when "b2" does not work

本文关键字:构建 何构建 b2 不起作用      更新时间:2023-10-16

理论上,boost需要使用b2构建。就我而言,使用b2 --build-dir=c:boost --toolset=msvc complete stage

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

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)Boost版本上没有。

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