boost 编译命令

来源:互联网 发布:星际战甲人物捏脸数据 编辑:程序博客网 时间:2024/06/05 21:13

Windows下:

    bjam.exe --build-type=minimal --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread toolset=msvc-9.0 variant=release link=static threading=multi address-model=64 stage  

linux下:

    ./bjam --build-type=minimal --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread variant=release link=static threading=multi address-model=64 install


编译boost zlib

1下载zlib(http://www.zlib.net/)

2,设置 zlib的路径(进入 dos 界面)

set  ZLIB_SOURCE=" E:/zlib-1.2.7"

3编译

bjam --toolset=msvc-9.0 --with-iostreams --build-type=complete

注:zlib不需要提前编译



编译boost.log

bjam --with-log variant=release define=BOOST_LOG_WITHOUT_EVENT_LOG define=BOOST_LOG_USE_WINNT6_API  define=BOOST_LOG_DYN_LINK stage

0 0
原创粉丝点击