Ubuntu提升b2错误:无法使用--layout = system with --build-type complete

时间:2013-11-21 15:22:47

标签: ubuntu boost build libraries

我有Uccntu 12.04和gcc 4.6.3。我已经下载了最后一个boost_1_55_0.tar.gz,将其解压缩到usr/local/boost_155文件夹,创建了环境变量BOOST_ROOTexecuted ./bootstrap.sh。然后我试着跑:

sudo ./b2 --toolset=gcc --build-type=complete --with-date_time --with-thread --with-system --with-chrono stage

使用MinGW 4.8.0和msvc-9.0-10.0在XP下运行相同的操作: b2.exe --toolset=gcc-4.8.0 --build-type=complete --with-date_time --with-thread --with-system --with-chrono architecture=x86 address-model=32 stage 但是根据Ubuntu b2拒绝工作,给我以下错误:

error: Cannot use --layout=system with --build-type complete.
error: Please use either --layout=versioned or --layout=tagged
error: if you wish to build multiple variants.
error: Note that --layout=system is used by default on Unix starting with Boost 1.40.

我不想建立所有提升。我现在只需要boost :: thread; 如何在Ubuntu下完成? 有人以类似的方式安装了boost_1_54或(已)boost_1_55吗?哪里我错了?

提前致谢!

1 个答案:

答案 0 :(得分:0)

命令行必须如下所示:

sudo ./b2 --toolset=gcc --build-type=complete --layout=versioned --with-date_time --with-thread --with-system --with-chrono stage