-
Vào thư mục vừa tải về, chạy file bootstrap.bat
Hoặc gõ một trong các lệnh sau:
bootstrap vc142 (if you are using Visual Studio 2019) bootstrap vc141 (if you are using Visual Studio 2017) bootstrap vc140 (if you are using Visual Studio 2015) bootstrap gcc (if you are using mingw)
-
Mở cmd chạy lệnh:
-
MSVC 2019
b2 --build-dir=build/x64 address-model=64 threading=multi --build-type=complete --stagedir=./stage/x64 --toolset=msvc-14.2 -j 12
-
GCC
b2 --build-dir="path_to_your_boost_dir\build" --build-type=complete --prefix="path_to_dir_you_want_install" toolset=gcc install
-
Một cách ngắn gọn chỉ cần chạy 2 lệnh sau:
------------GCC---------------
bootstrap gcc
b2 toolset=gcc
-------------MSVC 2019---------------
bootstrap vc142
b2 toolset=msvc-14.2
-------------MSVC 2017---------------
bootstrap vc141
b2 toolset=msvc-14.1