Something went wrong during CMake run

When CMake is run Conan will download library packages. You can see under Requirements in the CMake output from where the packages will be downloaded. Most packages will come from ogs:

$ cmake ../ogs
-- Conan executing: conan install . -g cmake -s build_type=Release -s os=Macos -s compiler=apple-clang -s compiler.version=9.0 -s compiler.libcxx=libc++ --build=missing --update
PROJECT: Installing /Users/bilke/code/ogs6/build-n/conanfile.txt
    Boost/1.64.0@conan/stable from conan-community
    Eigen3/3.2.9@bilke/stable from ogs
    Qt/5.9.2@osechet/stable from ogs
    Shapelib/1.3.0@bilke/stable from ogs
    VTK/7.1.0@bilke/stable from ogs
    libgeotiff/1.4.2@bilke/stable from ogs
    libtiff/4.0.6@bilke/stable from ogs
    proj/4.9.2@bilke/stable from ogs
    zlib/1.2.11@conan/stable from conan-center

You can always delete the Conan cache directory in $HOME/.conan to start fresh. This can fix errors.

ERROR: Invalid setting ‘X’ is not a valid ‘settings.compiler.version’ value

In ~/.conan/settings.yml it is defined which compiler versions are supported by Conan on your machine. Unfortunately (and this is also a bit inconvenient) this file is not updated automatically when upgrading Conan. Three possible ways to fix it:

  • add the missing value to the file by yourself
  • simply delete the file, Conan will re-create it on the next run (easiest method)
  • when upgrading Conan it creates a file ~/.conan/ or similar which you can just rename to ~/.conan/settings.yml

See also:

ERROR: Error in system requirements

When your cmake-run output looks similar to this:

$ cmake ..
Running: sudo -A yum update -y
sudo: no askpass program specified, try setting SUDO_ASKPASS
ERROR: Error in system requirements

Please run sudo -v before your cmake-command. This will ask you for your password to let Conan install some system packages during the cmake-run.

This article was written by Lars Bilke. If you are missing something or you find an error please let us know.
Generated with Hugo 0.117.0 in CI job 362666 | Last revision: July 12, 2023
Commit: [PL/SSD] Rename x_dot to x_prev 04a8fec8  | Edit this page on