How do I build Boost.Build before compiling boost using MinGW on Windows 7? -


i'm running windows 7 enterprise sp1 , trying set c++ dev environment. installed mingw, , seems working on own. next, need install boost... seems option compile source. (i don't see official windows binaries. found several unofficial ones, tend several version behind current , isn't clear they're being maintained.)

so download tarball, extract it, open msys shell mingw, go tools/build/v2 , run bootstrap.sh - fails, , bootstrap.log reads follows:

### ### using 'gcc' toolset. ### rm -rf bootstrap mkdir bootstrap gcc -o bootstrap/jam0 command.c compile.c constants.c debug.c execcmd.c frames.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 pathsys.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 class.c cwd.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:34:23: fatal error: sys/wait.h: no such file or directory compilation terminated. execunix.c:20:26: fatal error: sys/resource.h: no such file or directory compilation terminated. fileunix.c:96:17: fatal error: ar.h: no such file or directory compilation terminated. 

as best can figure, don't have files. (i don't see them in mingw install anywhere...) next tried bootstrap.sh --with-toolset=mingw (which seems "supported" option...) , seems little farther before giving different error. here bootstrap.log run:

### ### using 'mingw' toolset. ### rm -rf bootstrap mkdir bootstrap gcc -dnt -o bootstrap/jam0 command.c compile.c constants.c debug.c execcmd.c frames.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 pathsys.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 class.c cwd.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 execnt.c filent.c ./bootstrap/jam0 -f build.jam --toolset=mingw --toolset-root= clean ...found 1 target... ...updating 1 target... ...updated 1 target... ./bootstrap/jam0 -f build.jam --toolset=mingw --toolset-root= don't know how make modules/set.c don't know how make modules/path.c don't know how make modules/regex.c don't know how make modules/property-set.c don't know how make modules/sequence.c don't know how make modules/order.c ...found 126 targets... ...updating 1 target... ...can't find 6 targets... ...can't make 2 targets... failed write command file! 

i tried go looking these files (or they're supposed anyhow) , can't find modules directory anywhere... i'm pretty stumped on error. can't tell sure whether these generated source files supposed build can't reason, or files supposed exist , can't find them (and in latter case, whether they're supposed included boost source or supposed on system somewhere).

does know how fix error , boost built? (or @ least boost.build built, supposed first step towards building boost...?)

you shouldn't use msys shell. make sure g++.exe on path, , via cmd.exe run

d:\libraries\boost\boost_1_53_0>bootstrap.bat gcc

this should produce b2.exe can used build (parts of) boost.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -