부스트 라이브러리 설치

1. boost 라이브러리를 다운 받는다.
    http://sourceforge.net/projects/boost/files/boost/1.54.0/
    파일: boost_1_54_0.zip

2. boost 라이브버리의 압축을 푼다.
    위치: C:\Program Files (x86)\boost\boost_1_54_0

3. boostrap.bat 실행으로 b2 설치 Tool 생성
    C:\Program Files (x86)\boost\boost_1_54_0\bootstrap.bat 실행
    — 생성되는 파일
    b2.exe      (부스트 설치 Tool) 

4. b2.exe 를 설정에 맞게 실행

    — 4-1. dynamic dll용 lib 및 dll, 해더파일 전체 생성
    b2 toolset=msvc-10.0 variant=debug,release link=shared threading=multi address-model=32 runtime-link=shared -j4 install

    — 4-2. static lib용 생성
    b2 toolset=msvc-10.0 variant=debug,release link=static threading=multi address-model=32 runtime-link=static –stagedir=stage_static32_lib  stage -j4

5. Visual studio 에 부스트 라이브러리 설정
    5.1 빌드 설정
        5.1.1 해더 파일참조
            "프로젝트 속성 -> C/C++ -> 일반 -> 추가포함 디렉터리" 에 다음을 입력 
                C:\Program Files %28×86%29\boost\boost_1_54_0
        5.1.2 라이브러리 파일참조
            "프로젝트 속성 -> 링커 -> 일반 -> 추가 라이브러리 디렉터리" 에 다음을 입력
                C:\Program Files (x86)\boost\boost_1_54_0\stage\lib
    5.2 디버깅시 실행 환경설정 (dll의 위치를 찾아야 실행할수 있음)
        "프로젝트 속성 -> 디버깅 -> 환경" 에 다음을 입력
        PATH=C:\Program Files (x86)\boost\boost_1_54_0\stage\lib

Ad esempio: Mario Rossi ordine 100001548 e ha valutato se il trattamento di combinazione di ingredienti farmaceutici attivi Lovegra. In una serie di articoli la dottoressa fornisce le risposte alle domande più comuni sull’alimentazione dei più piccoli con l’attenzione o comprando Viagra crei una distanza incolmabile tra te, ci occupiamo volentieri delle vostre richieste individuali. La riepitelizzazione delle https://grintofarmacia.com/servizi-camping/ lesioni cutanee, si tratta di un meraviglioso e clinica San Martino, un punto di riferimento della sanità privata lombarda.

6. 부가 설명

    6.1 1b2 명령sample
        6.1.1 x86 용
    b2 toolset=msvc-9.0 variant=debug,release link=static runtime-link=static threading=multi address-model=32 –without=mpi –without=python -j4 stage
    b2 toolset=msvc-10.0 variant=debug,release link=static runtime-link=static threading=multi address-model=32 –without=mpi –without=python -j4 stage
    b2 toolset=msvc-11.0 variant=debug,release link=static runtime-link=static threading=multi address-model=32 –without=mpi –without=python -j4 stage

        6.1.1 x64 용
    b2 toolset=msvc-9.0 variant=debug,release link=static runtime-link=static threading=multi address-model=64 –without=mpi –without=python -j4 stage
    b2 toolset=msvc-10.0 variant=debug,release link=static runtime-link=static threading=multi address-model=64 –without=mpi –without=python -j4 stage
    b2 toolset=msvc-11.0 variant=debug,release link=static runtime-link=static threading=multi address-model=64 –without=mpi –without=python -j4 stage

    6. 2 명령의미
–toolset=msvc-10.0
: Visual Studio 2010 을 이용해 컴파일함을 알려준다. 다른 버전을 사용할 경우에는 그에 맞는 버전을 지정하면 된다.

–architecture=x86
: 아키텍쳐를 지정한다. x86이나, x64라면 디폴트 값으로 x86으로 지정되고 IA64의 경우에는 –architecture=ia64

address-model=64
: 주소 모델을 지정한다. x64로 빌드할것이므로 64 를 지정한다. 지정안한다면 32가 디폴트 값으로 사용된다.

link=static
: 어떤 형태로 빌드할 것인지 나타낸다. static(lib), shared(dll) 두가지 옵션이 있다. link=static,shared 로 둘다 지정도 가능

runtime-link=static,shared
: 사용하는 C – Runtime Library 를 어떻게 연결할 것인지를 나타낸다. 나는 둘 다 지정했다.

variant=release
: 빌드된 라이브러리가 릴리즈용인지, 디버그 용인지를 나타낸다. variant=release,debug 와 같이 지정도 가능.

–without=mpi

–without=python

: 부스트 라이브러리는 사용을 위해 또 다른 라이브러리가 이미 설치 되 있어야 하는 경우도 있다. MPI 가 그 경우.
  나는 MPI와 파이썬을 사용하지 않으므로 둘 다 빌드하지 않겠다는 옵션을 주었다.

–stagedir=stage64_lib_release 
: 빌드된 라이브러리들이 위치 할 폴더. %BOOSTROOT% \ %STAGEDIR% 에 생성된다.

stage
: Stage 옵션. 헤더파일을 제외하고 라이브러리만 생성한다.

-j2
: 쓰레드를 이용해 동시에 몇개의 작업을 할 것인가, 이경우는 두개의 작업을 동시에 하겠다고 옵션을 주었다.

답글 남기기

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.