【问题标题】:How do I build boost 1.55 from the command line with mingw?如何使用 mingw 从命令行构建 boost 1.55?
【发布时间】:2014-09-08 11:49:36
【问题描述】:

注意:我看过this SO question,但我认为这个问题并不明确,解决方案也没有涵盖我遇到的问题。

我从sourceforge 下载了 boost 1.55 并将其解压缩到 C:\My Programs\ 目录。当我尝试运行 bootstrap.bat 文件 (REF) 时出现错误:

C:\Users\pollexb\git_repositories\modular-boost>bootstrap.bat 
Building Boost.Build engine 
'"VCVARS32.BAT"' is not recognized as an internal or external command 
operable program or batch file. 
'"VCVARS32.BAT"' is not recognized as an internal or external command 
operable program or batch file. 
'"VCVARS32.BAT"' is not recognized as an internal or external command 
operable program or batch file. 
'"VCVARS32.BAT"' is not recognized as an internal or external command 
operable program or batch file. 
'cl' is not recognized as an internal or external command, 
operable program or batch file. 

Failed to build Boost.Build engine. 
Please consult bootstrap.log for furter diagnostics. 

You can try to obtain a prebuilt binary from 

   http://sf.net/project/showfiles.php?group_id=7586&package_id=72941 

Also, you can file an issue at http://svn.boost.org 
Please attach bootstrap.log in that case. 

问题是什么以及如何解决?

【问题讨论】:

    标签: boost command-line mingw


    【解决方案1】:

    Boost 1.55 似乎在 bootstrap.bat 工作时出现问题 (REF)。最简单的解决方案是下载并安装Boost 1.54

    【讨论】:

      【解决方案2】:

      我在 2 年后回答这个问题,因为我在 boost 1.60 上遇到了同样的问题。

      您似乎没有安装 Visual Studio。显然 bootstrap.bat 假定您将其作为默认设置,否则您应该指明要使用的编译器工具链。例如,我必须输入“boostrap.bat mingw”。

      【讨论】:

        猜你喜欢
        • 2013-12-14
        • 2014-01-17
        • 1970-01-01
        • 1970-01-01
        • 2014-02-11
        • 2016-11-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多