Search code examples
installationconan

Conan OpenAL-Soft Package Installation Issue: 'settings.compiler' value not defined Question:


I am encountering an issue while trying to install the OpenAL-Soft package using Conan. The error message I'm receiving is as follows:

openal-soft/1.22.2: Error in validate() method, line 74
        if self.settings.compiler.get_safe("cppstd"):
        ConanException: 'settings.compiler' value not defined

Does anyone has a clue what can I do ?

I updated conan using the following line:

pip install --upgrade conan

I also checked my conan profile

Detected profile:
[settings]
arch=x86_64
build_type=Release
os=Windows

Solution

  • The openal-soft recipe requires having a compiler defined, this is why it is complaining with ConanException: 'settings.compiler' value not defined.

    Indeed, your profile doesn't have a compiler defined. This is typically because you don't have a c++ compiler installed in the system or it is not in a default location, path, or discoverable by the Conan profile detection. You should try installing a compiler and then doing forcing the profile detection again. Or defining your own profile file and passing it with conan ... -pr=myprofile to the command line.