我有一个带有gcc 4.6.3的Ubuntu 12.04。我已经下载了最后一个boost_1_55_0.tar.gz,将其解压缩到usr/local/boost_155
文件夹中,创建了环境变量BOOST_ROOT
和executed ./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.
我不想建立所有的助推。我现在需要提升::仅线程;在Ubuntu下必须如何完成?是否有人以类似的方式安装了boost_1_54或(已经)安装了boost _1_55?我哪里错了?
提前感谢!
命令行必须如下所示:
sudo ./b2 --toolset=gcc --build-type=complete --layout=versioned --with-date_time --with-thread --with-system --with-chrono stage