如何使用 Visual Studio 2015(企业)构建 boost 版本 1.58.0

2021-12-24 00:00:00 c++ boost visual-studio-2015 b2

我喜欢使用(新)Visual Studio 2015(企业版)构建 boost 1.58.0.过去我是按照以下方式进行的:

  1. 修改后文件在C:Program Files (x86)Microsoft Visual Studio 14.0VC

    I like to build boost 1.58.0 using the (new) Visual Studio 2015 (Enterprise). In the past I proceeded in the following way:

    1. Download boost 1.58.0 from www.boost.org
    2. Extract files (e.g. C: hirdpartyvs2013x64oost_1_58_0)
    3. Start Visual Studio 2013 x64 command prompt (VS2013 x64 Native Tools Command Prompt)
    4. Change to boost directory (e.g. cd C: hirdpartyvs2013x64oost_1_58_0)
    5. Execute .ootstrap.bat
    6. Execute .2 -j8 --toolset=msvc-14.0 address-model=64 --build-type=complete stage
    7. b2 -j8 --toolset=msvc-12.0 address-model=64 --build-type=complete stage --with-python

    But in VS2015 there is not VS2015 command prompt.

    Also the vcvarsall.bat is missing that I used sometimes to setup a VS2013 command prompt.

    How can I compile the source code of boost using VS2015?

    解决方案

    I Tried to install Qt and I had the same issue: vcvarsall.bat was missing. In my case the problem was that I unchecked The Visual C++ Common Tools.

    I modified my VS 2015 installation and added the missing feature Common Tools for Visual C++ 2015:

    After the modification, the File is in C:Program Files (x86)Microsoft Visual Studio 14.0VC

相关文章