Boost Build
Table of Contents

Boost 1.34.1开始去除了BJam V1的相关文件,使用BJam V2做为编译工具。编译Boost就要首先编译BJam源代码,生成BJam,然后再使用bjam编译Boost。

# tar xvfz boost_1_34_1.tar.gz
# cd boost_1_34_1/tools/jam/src
# sh ./build.sh

即可得到boost_1_34_1/tools/jam/src/bin.linuxx86/bjam程序,将bjam拷贝到操作系统的PATH变量能搜索到的路径如/bin下即可。例如:

cp boost_1_34_1/tools/jam/src/bin.linuxx86/bjam  /bin

下面就可以编译Boost了:

cd  boost_1_34_1
bjam stage

这里仅仅编译但不安装的boost。这是我本人的喜好问题。而且安装后很可能和系统原来的boost库引起混乱。(如果你确定要安装,请参考 http://blog.csdn.net/goodboy1881/archive/2006/03/27/640004.aspx

完成编译后所有的库文件都保存在boost_1_34_1/stage目录下,而头文件就在boost_1_34_1/boost/目录下。

参考资料:http://www.liufei.com/blog/read.php/28.htm

page_revision: 3, last_edited: 1209892284|%e %b %Y, %H:%M %Z (%O ago)
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License