Skip to content

Cannot find BoostRoot.cmake when using CMake to compile source codes. #24

Description

@hwhsu1231

Descriptions

I tried to use CMake to compile the source codes. However, it failed with the following errors:

CMake Error at CMakeLists.txt:20 (include):
  include could not find requested file:

    BoostRoot


-- Configuring incomplete, errors occurred!

Therefore, I went to check the project folder, but didn't find BoostRoot.cmake.

Besides, I found that all of folders inside the tools folder are EMPTY, too.

What happened? What do I miss?

Steps of Installation

Click to expand
  1. Download and unzip the source code.

    boost-1.79.0.zip

  2. Open Windows Terminal (cmd.exe) and change to the project folder.

    cd boost-1.79.0
    
  3. call vcvarsall.bat x64 to preload the MSVC environment.

    vcvarsall x64
    
  4. Create the build folder and change into it.

    md build-msvc16-x64
    cd build-msvc16-x64
    
  5. Configure the project with the generator Ninja Multi-Config.

    cmake ../cmake -G"Ninja Multi-Config"
    

Logs

Click to expand
C:\ccxxpkgs\source\boost-1.79.0>md build-msvc16-x64

C:\ccxxpkgs\source\boost-1.79.0>cd build-msvc16-x64

C:\ccxxpkgs\source\boost-1.79.0\build-msvc16-x64>vcvarsall x64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.16
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\ccxxpkgs\source\boost-1.79.0\build-msvc16-x64>cmake .. -G"Ninja Multi-Config"
-- The CXX compiler identification is MSVC 19.29.30145.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:20 (include):
  include could not find requested file:

    BoostRoot


-- Configuring incomplete, errors occurred!
See also "C:/ccxxpkgs/source/boost-1.79.0/build-msvc16-x64/CMakeFiles/CMakeOutput.log".

Screenshots

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions