如何修复 conan ERROR: The default build profile doesn't exist.

问题:

你想使用类似以下命令安装或构建 conan 项目

conan_install.sh
conan install .

但你看到类似这样的错误消息

conan_default_profile_error.txt
ERROR: The default build profile '/home/uli/.conan2/profiles/default' doesn't exist.
You need to create a default profile (type 'conan profile detect' command)
or specify your own profile with '--profile:build=<myprofile>'

解决方案

通常你只想使用以下命令创建默认构建配置

conan_profile_detect.sh
conan profile detect

detect 意味着检测编译器。


Check out similar posts by category: Conan