Skip to content

Faild in compiling with conan #836

Closed

Description

@Deyujonney

I am following the "How to compile" to compile BT.CPP. When I use "conan install ../BehaviorTree.CPP --output-folder=. --build=missing", I get the following errors:

ERROR: There are invalid packages:
gtest/1.14.0: Invalid: 'settings.compiler' value not defined
sqlite3/3.40.1: Invalid: 'settings.compiler' value not defined
libsodium/1.0.19: Invalid: 'settings.compiler' value not defined
zeromq/4.3.4: Invalid: 'settings.compiler' value not defined

The version of conan is 2.4.1.

I am new to this. Any help is deeply appreciated.

Activity

  1. facontidavide commented on Feb 2, 2026

    @facontidavide
    Collaborator

    The error you're seeing ('settings.compiler' value not defined) means your Conan 2 profile hasn't been configured yet. Conan needs to know which compiler, OS, and architecture you're using before it can resolve packages.

    To fix this, run:

    conan profile detect

    This auto-detects your compiler and creates a default profile. After that, retry the install:

    conan install . -s build_type=Release --build=missing

    A few additional tips:

    • Make sure you're using Conan 2.x (which you are — 2.4.1). The command syntax differs from Conan 1.x, so double-check any tutorial you're following matches Conan 2.
    • After conan install, use the CMake presets it generates:
      cmake --preset conan-release
      cmake --build --preset conan-release
    • If you're building on Windows with MSVC, PR Fix Windows build issues (#762, #869, #836) #1089 (now merged) added proper MSVC runtime propagation in conanfile.py, which prevents Debug/Release runtime mismatch errors. Make sure you're on the latest version of the library.
    • If you don't need Conan, you can also build with plain CMake using the vendored dependencies (the default):
      mkdir build && cmake -S . -B build && cmake --build build --parallel

    Closing this as the profile detection is a Conan setup step and the MSVC runtime issue has been addressed in #1089.

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