2012년 5월 18일 금요일

boost 를 MinGW 로 빌드하기

boost 를 MinGW 로 빌드하기



참조:

http://www.boost.org/

http://sourceforge.net/apps/trac/mingw-w64/wiki/Building%20Boost

http://www.boost.org/doc/libs/1_32_0/tools/build/v1/mingw-tools.html

http://www.boost.org/doc/libs/1_49_0/more/getting_started/windows.html





boost root 에서 다음내용의 batch 파일을 만들고 실행시키면,

"D:\DEV\boost_1_49_0\boost_1_49_0\stage\libgcc32" 디렉토리에

boost header 와 library 가 생성된다.







ECHO make sure bjam.exe is available (build if this not the case)
IF NOT EXIST "bjam.exe" (
   CALL bootstrap.bat
)


bjam --prefix=D:\DEV\boost_1_49_0\boost_1_49_0\stage\libgcc32 ^
 --toolset=gcc address-model=32 variant=debug,release link=static,shared ^
 threading=multi install









MinGW 64 버전으로도 한번 해볼까.






댓글 없음: