Skip to content

Troubleshooting

Niccolò Iardella edited this page Feb 7, 2021 · 8 revisions

During CMake configuration, you may encounter one or more of the following errors:

  • No CMAKE_CXX_COMPILER could be found.

    This usually means that your C++ compiler is not installed. Make sure that either g++ or clang is installed properly.

    If the error persists you can set either the environment variable CXX or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

  • Unable to find the requested Boost libraries.

    CMake was not able to locate your Boost installation, so make sure that it is installed. If you can't or won't install Boost, you need to pass BOOST_ROOT to CMake like this:

    cmake .. -DBOOST_ROOT="/my/custom/path/to/boost/"

Clone this wiki locally