Mingw compilation boost
(Jinqing's column)
An error occurred while running Bootstrap. Sh in mingw shell.
Jinq @ jinqing-PC/D/src/boost_000052_0
$ Bootstrap. Sh toolset = gcc
Building boost. Build engine with toolset GCC...
Failed to build boost. Build build Engine
Consult 'bootstrap. log' For more details
Bootstrap. log is shown as follows:
###
### Using 'gcc 'toolset.
###
Rm-RF Bootstrap
Mkdir Bootstrap
Gcc-O Bootstrap/jam0 command. c compile. c constants. c debug. c function. c glob. c hash. c hdrmacro. c headers. c jam. c jambase. c jamgram. C lists. c make. c make1.c object. C option. c output. c parse. c pathunix. c Regexp. c rules. C scan. c search. c SUBST. c timestamp. c variable. c modules. c strings. c filesys. c builtins. c PWD. C Class. c native. c md5.c w32_getreg.c modules/set. c modules/path. c modules/RegEx. c modules/property-set.c modules/sequence. c modules/order. c execunix. c fileunix. c
Builtins. C: 33: 23: Fatal error: SYS/Wait. H: no such file or directory
Compilation interrupted.
Execunix. C: 17: 26: Fatal error: SYS/resource. h: no such file or directory
Compilation interrupted.
Fileunix. C: 98: 17: Fatal error: Ar. h: no such file or directory
Compilation interrupted.
Follow the http://lists.boost.org/boost-users/2011/06/69016.php
The solution is as follows:
Jinq @ jinqing-PC/D/src/boost_1_52_0/tools/build/v2/Engine
$./Build. Sh mingw
Jinq @ jinqing-PC/D/src/boost_1_52_0/tools/build/v2/engine/bin. ntx86
$ CP b2.exe/D/src/boost_000052_0
Jinq @ jinqing-PC/D/src/boost_000052_0
$ B2 toolset = GCC stage
Follow the https://svn.boost.org/trac/boost/ticket/4884#comment:10
You can run bootstrap.batin the .exe window to generate b2.exe.
However, you need to set the GCC path.
Bootstrap. Sh does not support running in the mingw shell.