Initial acquaintance with Boost on Windows start to build precompiled libraries and connecting them to the project on Qt. This code will use one of the Hello World-s from the Boost documentation, namely the installation locale using boost.
Building Boost for MinGW
First, download the latest version of Boost (as of this writing is version 1.61) and unpack the archive into a folder. In my case, the archive is unpacked in the following path:
Then open the console and go to the folder. In this folder there is a batch file to build bootstrap.bat
tool, which is designed to control compilation target libraries under the compiler.
To build this tool for MinGW run the following command:
Once the tool is assembled perform the assembly of all the necessary libraries with the following command:
b2 toolset=gcc link=shared --prefix=boost_mingw_530 install // , where
// toolset - this tool, which will be collected in the library,
// ie the type of compiler, which you will collect the library
// link - this type of library, in this case the shared - dynamic
// --prefix - folder which will be copied the header files and libraries compiled
// in my case D:\EVILEG\boost_1_61_0\boost_mingw_530
Then you can go about their business, because this process is not fast.