青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

兔子的技術博客

兔子

   :: 首頁 :: 聯系 :: 聚合  :: 管理
  202 Posts :: 0 Stories :: 43 Comments :: 0 Trackbacks

留言簿(10)

最新評論

閱讀排行榜

評論排行榜

在vs2010下編譯boost

注意紅色大字體


boost最新版本1.44已經支持vs2010,然而直接下載編譯會發現一堆bug;

首先由bootstrap編譯bjam的時候就會碰釘子,典型的錯誤就是:

Failed to build Boost.Jam build engine.
Please consult bjam.log for furter diagnostics.

查看bjam.log后可以發現里面的錯誤信息:

command.c : fatal error C1033: cannot open program database ''

Technorati 標簽: ,,,

這個問題在于一個vs編譯環境。默認我們都直接進入cmd進行編譯,在vs2010環境下這個是行不通的。

其次的錯誤就是通過bjam編譯boost庫的時候,會發現編譯過程中出現很多fatal,很多庫編譯不成功;

解決辦法: 在開始菜單中,Microsoft Visual Studio 2010\Visual Studio Tools下運行Visual Studio Command Prompt (2010),通過這個cmd進入boost的目錄進行bjam的編譯以及運行bjam編譯boost;

搞定bjam后,在Visual Studio Command Prompt (2010)下直接運行:

bjam --toolset=msvc-10.0 --with-date_time --with-program_options --with-system --with-thread --with-filesystem --with-test --with-regex --with-crypto --with-serialization

然后就可以去喝咖啡了

具體編譯參數詳見:http://sswflying.spaces.live.com/blog/cns!A1AF9E41EDCAEF99!515.entry

boost庫編譯方法(zz)

Windows下:

C++代碼

  1. 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 stage 
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 stage

Linux下:

C++代碼

  1. ./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 stage 
    ./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 stage


:-)
////////////////////////////////////////////////
許多新人對于編譯BOOST感到無從下手,甚至因此而放棄使用BOOST,那真的太可惜了,下面我把一些常用的BOOST編譯方法貼于此,同時也作為自己的筆記。
首先下載bjam.exe,復制到 $BOOST$ 目錄下。或者自己生成bjam,打開Visual Studio 2008 命令提示窗口$BOOST$\tools\jam\src,執行 build.bat 會在$BOOST$\tools\jam\src\bin.ntx86 生成 bjam.exe 文件。復制文件 bjam.exe  文件到 $BOOST$\下
1.完全編譯安裝:
bjam --toolset=msvc install
完成后會生成一個bin.v2編譯時的臨時目錄,手動刪除。生成另一個目錄C:\boost,里面為所有的頭文件和庫文件。頭文件目錄為boost_1_34_1\boost目錄復制過去的。
2.只編譯相應的庫文件
bjam --toolset=msvc stage
完成后同樣會生成bin.v2臨時目錄。另一個目錄為stage文件,里面有對應的庫文件。
3.查看需要編譯才能使用的庫列表
bjam --show-libraries
4.編譯特定的庫,如只編譯regex
bjam --toolset=msvc --with-regex stage
生成的庫文件在stage目錄中。
5.不編譯某個庫,如不編譯regex
bjam --toolset=msvc --without-regex stage
生成的庫文件在stage目錄中。
6.編譯特定的庫,如只編譯regex,生成debug,多線程,共享連接版本,并保存在stage。
bjam --toolset=msvc --with-regex stage debug threading=multi link=shared
7.生成 mt-sgd 的靜態庫(runtime-link-static)
bjam "-sTOOLS=vc-8_0" --with-thread install debug release runtime-link=static
8.編譯regex庫。
bjam --toolset=msvc --with-regex stage debug release threading=multi threading=single link=shared link=static runtime-link=shared runtime-link=static
boost的安裝方法:
對于DLL版本
bjam --toolset=msvc link=shared runtime-link=shared threading=multi stage debug release install
對于lib版本
bjam --toolset=msvc link=static runtime-link=shared threading=multi stage debug release install
另外,在$BOOST$\tools\build\v2\user-config.jam找到下面的地文
# -------------------
# MSVC configuration.
# -------------------
# Configure msvc (default version, searched for in standard locations and PATH).
# using msvc ;
# Configure specific msvc version (searched for in standard locations and PATH).
# using msvc : 8.0 ;
#在這里添加 vs2008 的配置
using msvc : 9.0 : : /wd4819 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE  /D_SECURE_SCL=0 ;
#在這里添加 vs2005 的配置
using msvc : 8.0 : : <compileflags>/wd4819 <compileflags>/D_CRT_SECURE_NO_DEPRECATE <compileflags>/D_SCL_SECURE_NO_DEPRECATE <compileflags>/D_SECURE_SCL=0 ;   
然后進入 $BOOST$ 目錄,執行bjam.exe 編譯命令
//下面的命令的各選項的說明:
//prefix    將boost安裝到的路徑(生成的頭文件和庫文件都會放到該路徑中)。
//重定義以下變量(利用-s設置):
//VC80_ROOT   vc2005的安裝路徑,如果未將vc2005安裝到默認位置,你必須指定該項。
//TOOLS         使用的編譯工具,vc2005對應的是vc-8_0
//PYTHON_ROOT   ython的安裝目錄,如果未將BOOST安裝到默認位置,你必須指定該項。
//BUILD         編譯結果選項,默認會生成盡可能多的版本,如調試版/發行版,靜態庫/動態庫,單線程/多線程。
bjam 命令說明
Boost.Build V2 (Milestone 12)
Boost.Jam 03.1.16
Project-specific help:
  Project has jamfile at Jamroot
Usage:
  bjam [options] [properties] [install|stage]
  Builds and installs Boost.
Targets and Related Options:
  install                 Install headers and compiled library files to the
  =======                 configured locations (below).
  --prefix=<PREFIX>       Install architecture independent files here.
                          Default; C:\Boost on Win32
                          Default; /usr/local on Unix. Linux, etc.
  --exec-prefix=<EPREFIX> Install architecture dependent files here.
                          Default; <PREFIX>
  --libdir=<DIR>          Install library files here.
                          Default; <EPREFIX>/lib
  --includedir=<HDRDIR>   Install header files here.
                          Default; <PREFIX>/include
  stage                   Build and install only compiled library files
  =====                   to the stage directory.
  --stagedir=<STAGEDIR>   Install library files here
                          Default; ./stage
Other Options:
  --build-type=<type>     Build the specified pre-defined set of variations
                          of the libraries. Note, that which variants get
                          built depends on what each library supports.
                              minimal (default) - Builds the single
                              "release" version of the libraries. This
                              release corresponds to specifying:
                              "release <threading>multi <link>shared
                              <link>static <runtime-link>shared" as the
Boost.Build variant to build.
                              complete - Attempts to build all possible
                              variations.
  --build-dir=DIR         Build in this location instead of building
                          within the distribution tree. Recommended!
  --show-libraries        Displays the list of Boost libraries that require
                          build and installation steps, then exit.
  --layout=<layout>       Determines whether to choose library names
                          and header locations such that multiple
                          versions of Boost or multiple compilers can
                          be used on the same system.
                              versioned (default) - Names of boost
                              binaries include the Boost version
                              number and the name and version of the
                              compiler.  Boost headers are installed
                              in a subdirectory of <HDRDIR> whose
                              name contains the Boost version
                              number.
                              system - Binaries names do not include
                              the Boost version number or the name
                              and version number of the compiler.
Boost headers are installed directly
                              into <HDRDIR>.  This option is
                              intended for system integrators who
                              are building distribution packages.
  --buildid=ID            Adds the specified ID to the name of built
                          libraries.  The default is to not add anything.
  --help                  This message.
  --with-<library>        Build and install the specified <library>
                          If this option is used, only libraries
                          specified using this option will be built.
  --without-<library>     Do not build, stage, or install the specified
                          <library>. By default, all libraries are built.
Properties:
  toolset=toolset         Indicates the toolset to build with.
  variant=debug|release   Select the build variant
  link=static|shared      Whether to build static or shared libraries
  threading=single|multi  Whether to build single or multithreaded binaries
  runtime-link=static|shared    
                          Whether to link to static or shared C and C++ runtime.
Configuration help:
  Configuration file at $boost$\tools\build\v2
  user-config.jam
  This file is used to configure your Boost.Build installation. You can modify
this file in place, or you can place it in a permanent location so that it
does not get overwritten should you get a new version of Boost.Build. See:
  http://boost.org/boost-build2/doc/html/bbv2/reference.html#bbv2.reference.init
for documentation about possible permanent locations.
General command line usage:
    bjam [options] [properties] [targets]
  Options, properties and targets can be specified in any order.
Important Options:
  * --clean Remove targets instead of building
  * -a Rebuild everything
  * -n Don't execute the commands, only print them
  * -d+2 Show commands as they are executed
  * -d0 Supress all informational messages
  * -q Stop at first error
  * --debug-configuration Diagnose configuration
  * --debug-building Report which targets are built with what properties
  * --debug-generator Diagnose generator search/execution
Further Help:
  The following options can be used to obtain additional documentation.
  * --help-options Print more obscure command line options.
  * --help-internal Boost.Build implementation details.
  * --help-doc-options Implementation details doc formatting.
編譯所有版本:
bjam --toolset=msvc-8.0 --prefix=$lib-and-dll-out-dir$ --build-type=complete install
等待編譯完成.
設置開發環境:
打開VS2005 選擇 工具->選項->vc++目錄
設置包含文件目錄$lib-and-dll-out-dir$\include\boost-1_37\boost
設置引用文件目錄:$lib-and-dll-out-dir$\lib
完成.可以使用了.

http://anders0913.javaeye.com/blog/375303#


轉自: http://sswflying.spaces.live.com/blog/cns!A1AF9E41EDCAEF99!584.entry
              http://sswflying.spaces.live.com/blog/cns!A1AF9E41EDCAEF99!515.entry
posted on 2010-09-07 11:26 會飛的兔子 閱讀(10489) 評論(1)  編輯 收藏 引用 所屬分類: C++庫,組件
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲二区在线| 欧美大秀在线观看 | 亚洲国产日韩精品| 久久不射网站| 久久av红桃一区二区小说| 亚洲一区二区三区精品动漫| 激情综合色综合久久综合| 久久天天躁狠狠躁夜夜爽蜜月| 国内精品模特av私拍在线观看| 欧美视频在线观看视频极品| 免费在线欧美黄色| 麻豆久久精品| 蜜臀av性久久久久蜜臀aⅴ四虎| 你懂的网址国产 欧美| 国产精品大片wwwwww| 国产日韩一区二区三区在线播放| 国产在线精品成人一区二区三区| 一区二区三区在线免费播放| 午夜国产精品视频| 久久国产精品亚洲va麻豆| 亚洲综合清纯丝袜自拍| 亚洲最新视频在线| 亚洲欧美日韩系列| 免费在线看成人av| 亚洲美女一区| 蜜臀99久久精品久久久久久软件| 免费视频一区| 国产精品系列在线| 亚洲一区国产一区| 欧美电影在线播放| 性欧美xxxx视频在线观看| 欧美日韩成人网| 亚洲九九精品| 亚洲国产一成人久久精品| 亚洲韩国精品一区| 毛片一区二区三区| 午夜在线不卡| 国产综合精品| 美日韩精品视频| 久久免费视频观看| 亚洲国产高清aⅴ视频| 久久精品道一区二区三区| 亚洲欧洲av一区二区三区久久| 国产精品美女午夜av| 久久激情综合| 久久久久久久91| 亚洲国产视频直播| 亚洲欧洲另类国产综合| 欧美日韩亚洲综合一区| 午夜在线视频观看日韩17c| 久久久久久久波多野高潮日日| 亚洲国产小视频| 午夜影院日韩| 一区二区高清在线| 久久se精品一区精品二区| 亚洲欧美韩国| 亚洲精品国产欧美| 午夜精品一区二区三区四区| 亚洲国产精品第一区二区| 午夜精品一区二区三区四区| 99在线视频精品| 欧美国产在线观看| 欧美电影专区| 黄色一区二区三区| 亚洲美女毛片| 国产自产v一区二区三区c| 久久天天躁狠狠躁夜夜爽蜜月| 噜噜噜久久亚洲精品国产品小说| 99视频精品全部免费在线| 欧美一区二区三区四区在线观看地址| 激情亚洲一区二区三区四区| 亚洲激情网站| 亚洲国产高清aⅴ视频| 亚洲欧美www| 篠田优中文在线播放第一区| 亚洲国产精品视频| 欧美日韩午夜在线| 久久精品人人做人人爽电影蜜月| 欧美成年人网站| 老司机午夜精品| 欧美激情免费在线| 欧美激情久久久| 精品动漫3d一区二区三区| 午夜日韩电影| 老牛嫩草一区二区三区日本| 韩国三级电影久久久久久| 午夜精品久久久久| 久久久久久久久久久久久久一区 | 久久精品视频在线看| 欧美日韩伦理在线| 亚洲精选中文字幕| 日韩一区二区精品在线观看| 欧美va天堂在线| 亚洲精品日韩激情在线电影| 国产精品乱码一区二三区小蝌蚪| 亚洲图片欧美午夜| 欧美在线免费视屏| 亚洲第一网站| 欧美三级电影一区| 亚洲一区二区视频| 免费一区视频| 欧美一区二区三区日韩视频| 国产日本欧美在线观看| 免费国产一区二区| 亚洲一区二区三区四区中文 | 亚洲七七久久综合桃花剧情介绍| 蜜臀久久99精品久久久画质超高清| 欧美成人三级在线| 欧美一级理论性理论a| 亚洲国产欧美不卡在线观看| 久久精品女人| 欧美一区1区三区3区公司| 欧美激情第二页| 久久国产精彩视频| 国产精品入口福利| 欧美日韩国产页| 久久精品一区二区三区不卡牛牛 | 久久精品国产久精国产爱| 亚洲第一在线综合网站| 欧美性做爰猛烈叫床潮| 亚洲免费一级电影| 午夜久久99| 久久久综合免费视频| 久久久福利视频| 亚洲欧美日韩第一区| 久久精品五月婷婷| 久久久免费精品| 欧美华人在线视频| 国产精品v欧美精品∨日韩| 国产精品日韩欧美一区二区| 国产精品色一区二区三区| 麻豆91精品| 国产精品久久久久久久久果冻传媒 | 午夜精品久久久久久久久 | 国产精品久久99| 亚洲欧美色一区| 久久综合久色欧美综合狠狠| 国产精品老牛| 欧美日韩直播| 羞羞色国产精品| 亚洲第一网站| 一区二区三区黄色| 国产综合自拍| 亚洲无玛一区| 欧美一区二区在线视频| 亚洲欧美在线视频观看| 久久偷看各类wc女厕嘘嘘偷窃| 欧美激情91| 精品电影在线观看| 国产日韩欧美在线| 1769国产精品| 99热在这里有精品免费| 性高湖久久久久久久久| 久久久www成人免费无遮挡大片| 亚洲国产精品成人va在线观看| 99国产精品久久久| 亚洲电影一级黄| 最新亚洲视频| 日韩一区二区久久| 欧美一区三区二区在线观看| 欧美一区二区三区久久精品茉莉花| 欧美一区二区性| 亚洲精品在线三区| 欧美国产日韩在线观看| 在线成人性视频| 日韩视频二区| 老**午夜毛片一区二区三区| 国产欧美一区二区在线观看| 亚洲欧美在线一区二区| 一区二区三区精密机械公司| 国产精品系列在线播放| 日韩视频在线观看国产| 久久综合五月| 欧美在线视频不卡| 国产精品欧美精品| 美日韩丰满少妇在线观看| 国产精品一区二区三区成人| 久久亚洲免费| 亚洲在线1234| 欧美极品在线视频| 在线精品视频一区二区| 可以看av的网站久久看| 日韩视频免费观看高清在线视频| 欧美久久成人| 亚洲视频日本| 久久久综合网站| 亚洲在线视频免费观看| 欧美专区福利在线| 欧美国产在线视频| 亚洲国产精品久久久久婷婷884| 亚洲第一色在线| 欧美一区二区三区男人的天堂| 国产精品久久久久久久久| 免费高清在线视频一区·| 欧美体内谢she精2性欧美| 久久久夜色精品亚洲| 欧美专区中文字幕| 欧美亚洲综合另类| 亚洲尤物视频网| 欧美日韩精品二区第二页|