Recently I had to use some class from the Boost library and I have immediately faced the problem of building the Boost library. My task was to create the functional library for the eclipse IDE equipped with the gcc compiler from the MinGW environment. Actually the bjam.exe assumes the msvc compiler, so first this tool has to be rebuilt for the gcc compiler. Go to tools\build\v2\engine\src directory in your Boost folder and type:
build.bat mingw
Executable bjam.exe appears in the directory bin.ntx86 (or similar). You need to put this executable somewhere in your $PATH (or to the main directory of Boost) and type:
bjam –toolset=gcc –build-dir=directory –build-type=complete
to get fully-blown version, or omit the last option, i.e.:
bjam –toolset=gcc –build-dir=directory
to obtain a basic version of the library. Building takes a while, so be patient.
Post a Comment