安装Mingw64,msys,cmake.
按照boost的guide用编译boost:如果已经安装vs则可以
5.2.1 Install Boost.Build
Boost.Build is a text-based system for developing, testing, and installing software. First, you'll need to build and install it. To do this:
- Go to the directory tools\build\v2\.
- Run bootstrap.bat
- Run b2 install --prefix=PREFIX where PREFIX is the directory where you want Boost.Build to be installed
- Add PREFIX\bin to your PATH environment variable.
The bootstrap script assumes the msvc compiler is available. But you can build bjam by hand without the bootstrap script:
Step into the tools\build\v2\engine\src directory and call "build.bat mingw". It will create a bjam.exe. You can then put it in your %PATH% or perhaps in the root boost directory...
To be honest, I usually build bjam like this with the msvc compiler and use this "msvc-bjam" to build my mingw boost libraries.
build 64位的boost lib: .\b2 --build-dir=build-directory toolset=toolset-name --build-type=complete stage threading=multi link=shared address-model=64
编译完成。为了让find_package能够找到boost, the BOOST_INCLUDE_DIR, BOOST_LIBRARYDIR and BOOST_ROOT env variables must hold absolute paths. HTH!