提升 1.66 的安装错误

Installation error for boost 1.66

本文关键字:安装 错误 提升      更新时间:2023-10-16

我正在尝试在Windows 10上安装Boost 1.66和MinGW 7.2。

我尝试运行boostrap.bat mingw以及C:Program Filesboost_1_66_0toolsbuildsrcenginebootstrap gcc

结果我得到了这个:

C:Program Filesboost_1_66_0toolsbuild>bootstrap gcc
Bootstrapping the build engine
Failed to bootstrap the build engine
Please consult bootstrap.log for furter diagnostics.

引导.log文件如下所示:

###
### Using 'gcc' toolset.
###
C:Program Filesboost_1_66_0toolsbuildsrcengine>if exist bootstrap rd /S /Q bootstrap 
C:Program Filesboost_1_66_0toolsbuildsrcengine>md bootstrap 
C:Program Filesboost_1_66_0toolsbuildsrcengine>gcc -DNT -o bootstrapjam0.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 Filesboost_1_66_0toolsbuildsrcengine>.bootstrapjam0 -f build.jam --toolset=gcc "--toolset-root= "  clean 
...found 1 target...
...updating 1 target...
...updated 1 target...
C:Program Filesboost_1_66_0toolsbuildsrcengine>.bootstrapjam0 -f build.jam --toolset=gcc "--toolset-root= "  
...found 161 targets...
...updating 3 targets...
[MKDIR] bin.ntx86_64
[COMPILE] bin.ntx86_64b2.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: modulesset.c: No such file or directory
gcc: error: modulespath.c: No such file or directory
gcc: error: modulesregex.c: No such file or directory
gcc: error: modulesproperty-set.c: No such file or directory
gcc: error: modulessequence.c: No such file or directory
gcc: error: modulesorder.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_64b2.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" "modulesset.c" "modulespath.c" "modulesregex.c" "modulesproperty-set.c" "modulessequence.c" "modulesorder.c" "execnt.c" "filent.c" "pathnt.c" 
...failed [COMPILE] bin.ntx86_64b2.exe...
...skipped bjam.exe for lack of b2.exe...
...failed updating 1 target...
...skipped 1 target...
...updated 1 target...
C:Program Filesboost_1_66_0toolsbuildsrcengine>exit /b 1 

我可以在安装方面获得一些帮助吗?

看起来您是从错误的目录构建的:~boost_1_66_0toolsbuild而不是~boost_1_66_0

这里的答案描述了如何在最后使用MinGw构建boost