我正在尝试在Windows 10上安装Boost 1.66和MinGW 7.2。
我尝试运行boostrap.bat mingw
以及bootstrap gcc
处的C:\Program Files\boost_1_66_0\tools\build\src\engine
我得到了这个结果:
C:\Program Files\boost_1_66_0\tools\build>bootstrap gcc
Bootstrapping the build engine
Failed to bootstrap the build engine
Please consult bootstrap.log for furter diagnostics.
bootstrap.log文件如下所示:
###
### Using 'gcc' toolset.
###
C:\Program Files\boost_1_66_0\tools\build\src\engine>if exist bootstrap rd /S /Q bootstrap
C:\Program Files\boost_1_66_0\tools\build\src\engine>md bootstrap
C:\Program Files\boost_1_66_0\tools\build\src\engine>gcc -DNT -o bootstrap\jam0.exe command.c compile.c constants.c debug.c execcmd.c execnt.c filent.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 pathnt.c pathsys.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c class.c cwd.c w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c
C:\Program Files\boost_1_66_0\tools\build\src\engine>.\bootstrap\jam0 -f build.jam --toolset=gcc "--toolset-root= " clean
...found 1 target...
...updating 1 target...
...updated 1 target...
C:\Program Files\boost_1_66_0\tools\build\src\engine>.\bootstrap\jam0 -f build.jam --toolset=gcc "--toolset-root= "
...found 161 targets...
...updating 3 targets...
[MKDIR] bin.ntx86_64
[COMPILE] bin.ntx86_64\b2.exe
gcc: error: command.c: No such file or directory
gcc: error: compile.c: No such file or directory
gcc: error: constants.c: No such file or directory
gcc: error: debug.c: No such file or directory
gcc: error: debugger.c: No such file or directory
gcc: error: execcmd.c: No such file or directory
gcc: error: frames.c: No such file or directory
gcc: error: function.c: No such file or directory
gcc: error: glob.c: No such file or directory
gcc: error: hash.c: No such file or directory
gcc: error: hcache.c: No such file or directory
gcc: error: headers.c: No such file or directory
gcc: error: hdrmacro.c: No such file or directory
gcc: error: jam.c: No such file or directory
gcc: error: jambase.c: No such file or directory
gcc: error: jamgram.c: No such file or directory
gcc: error: lists.c: No such file or directory
gcc: error: make.c: No such file or directory
gcc: error: make1.c: No such file or directory
gcc: error: mem.c: No such file or directory
gcc: error: object.c: No such file or directory
gcc: error: option.c: No such file or directory
gcc: error: output.c: No such file or directory
gcc: error: parse.c: No such file or directory
gcc: error: pathsys.c: No such file or directory
gcc: error: regexp.c: No such file or directory
gcc: error: rules.c: No such file or directory
gcc: error: scan.c: No such file or directory
gcc: error: search.c: No such file or directory
gcc: error: subst.c: No such file or directory
gcc: error: w32_getreg.c: No such file or directory
gcc: error: timestamp.c: No such file or directory
gcc: error: variable.c: No such file or directory
gcc: error: modules.c: No such file or directory
gcc: error: strings.c: No such file or directory
gcc: error: filesys.c: No such file or directory
gcc: error: builtins.c: No such file or directory
gcc: error: class.c: No such file or directory
gcc: error: cwd.c: No such file or directory
gcc: error: native.c: No such file or directory
gcc: error: md5.c: No such file or directory
gcc: error: modules\set.c: No such file or directory
gcc: error: modules\path.c: No such file or directory
gcc: error: modules\regex.c: No such file or directory
gcc: error: modules\property-set.c: No such file or directory
gcc: error: modules\sequence.c: No such file or directory
gcc: error: modules\order.c: No such file or directory
gcc: error: execnt.c: No such file or directory
gcc: error: filent.c: No such file or directory
gcc: error: pathnt.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
"gcc" -o bin.ntx86_64\b2.exe "-DNDEBUG" "-DOPT_HEADER_CACHE_EXT" "-DOPT_GRAPH_DEBUG_EXT" "-DOPT_SEMAPHORE" "-DOPT_AT_FILES" "-DOPT_DEBUG_PROFILE" "-DJAM_DEBUGGER" "-DOPT_FIX_TARGET_VARIABLES_EXT" "-DOPT_IMPROVED_PATIENCE_EXT" "-DNT" "-DYYSTACKSIZE=5000" "-pedantic" "-fno-strict-aliasing" "-s" "-O3" "-Wno-long-long" "command.c" "compile.c" "constants.c" "debug.c" "debugger.c" "execcmd.c" "frames.c" "function.c" "glob.c" "hash.c" "hcache.c" "headers.c" "hdrmacro.c" "jam.c" "jambase.c" "jamgram.c" "lists.c" "make.c" "make1.c" "mem.c" "object.c" "option.c" "output.c" "parse.c" "pathsys.c" "regexp.c" "rules.c" "scan.c" "search.c" "subst.c" "w32_getreg.c" "timestamp.c" "variable.c" "modules.c" "strings.c" "filesys.c" "builtins.c" "class.c" "cwd.c" "native.c" "md5.c" "modules\set.c" "modules\path.c" "modules\regex.c" "modules\property-set.c" "modules\sequence.c" "modules\order.c" "execnt.c" "filent.c" "pathnt.c"
...failed [COMPILE] bin.ntx86_64\b2.exe...
...skipped bjam.exe for lack of b2.exe...
...failed updating 1 target...
...skipped 1 target...
...updated 1 target...
C:\Program Files\boost_1_66_0\tools\build\src\engine>exit /b 1
我可以获得一些安装方面的帮助吗?
答案 0 :(得分:1)
您似乎正在从错误的目录构建:~\boost_1_66_0\tools\build
而不是~\boost_1_66_0
答案here介绍了如何在最后使用boost
构建MinGw
。