zoukankan      html  css  js  c++  java
  • How to build boost64 in window with vs2009

    When I build the boost and record the process to be not forgotten.

    Step1:  Get Source code

    Download the source code from : http://sourceforge.net/projects/boost/files/.

    If you unzip the the source code "boost_1_37_0.zip" to the folder "boost/boost_1_37_0" then we name that folder as the $boost_home.

    Step2: Build bjam.

    Later it will use bjam to build the boost.

    The bjam source code are in   ( $boost_home/tools/jam/src), you can invoke the build bash script ( $boost_home/tools/jam/src/build.bat)to build it.

    After build succeed it will produce 'bjam.exe' the folder  ($boost_home/tools/jam/src/bin.ntx86)

    Step3: Build the boost library.

    3.1 build the all the libarary

       bjam --toolset=msvc-9.0 --prefix=$lib-and-dll-out-dir64$ address-model=64 --build-type=complete install 

           note:

        1.the toolset is pecified to msvs-9.0 if vs2009. Other value you can specify depending on your vs version( 2005-msvs-7.0)

            2. "address-model=64"  specifies  the win64

        3. " --prefix=$lib-and-dll-out-dir64$" specifies the folder ,that will be install all the library in it

       It will cost a lot of disk space and time. I have cost 3 hours and 10G disk to build all the library.

    3.2 build the specify libaray

        bjam.exe --with-date_time address-model=64 toolset=msvc-9.0 variant=release debug threading=multi stage

        note1: "--with-date_time" --> build the "date_time" library. it can be any library you want.

           2. "threading=multi" ----> to create the library will support muti-thread. ( the library name will with _mt )

          3.  The output libaray will in the stage folder.

       It just build the specify library, so it save a lot of time and disk space.

      

        

    Preference:

     1. http://www.boost.org/doc/libs/1_40_0/more/getting_started/index.html

     2. http://87426628.blog.163.com/blog/static/6069361820098154195922/

    library decription from  http://blog.csdn.net/JsuFcz/archive/2008/11/14/3301766.aspx

    · 库前缀
     
    lib
    · 库名称
    boost_date_time
    · 编译工具
    - gcc
    · 线程模式
    - mt
    · 运行模式
    - d
    · Boost 版本
    - 1_31
    · 库类型
    .a  
  • 相关阅读:
    【BZOJ 1069】【SCOI 2007】最大土地面积 凸包+旋转卡壳
    【POJ 2187】Beauty Contest 凸包+旋转卡壳
    1056: [HAOI2008]排名系统
    1874: [BeiJing2009 WinterCamp]取石子游戏
    1055: [HAOI2008]玩具取名
    2338: [HNOI2011]数矩形
    1060: [ZJOI2007]时态同步
    1054: [HAOI2008]移动玩具
    1053: [HAOI2007]反素数ant
    1052: [HAOI2007]覆盖问题
  • 原文地址:https://www.cnblogs.com/zhyg6516/p/1601779.html
Copyright © 2011-2022 走看看