【发布时间】:2020-05-02 18:05:50
【问题描述】:
相关文件:
.
├── bin
├── src
├── conanfile.py
└── gcc-9.3.0-linux-x86-debug.profile
尝试从 bin 文件夹运行以下命令时,我收到错误,即在配置文件中找不到名称和版本字段。
$ conan install .. --profile ../gcc-9.3.0-linux-x86-debug.profile
ERROR: Error reading '../gcc-9.3.0-linux-x86-debug.profile' profile: Specify the 'name' and the 'version'
但如果我理解正确的话,版本和名称应该在conanfile.py文件中定义。我应该在哪里为安装命令定义缺少的名称和版本号?
相关柯南简介
[build_requires]
cmake
ninja
gcc/9.3.0
g++/9.3.0
xorriso
qemu
[settings]
os=Linux
os_build=Linux
arch=x86
arch_build=x86
compiler=gcc
compiler.version=9.3.0
cppstd=17
build_type=Debug
[options]
[env]
CC=/usr/bin/gcc-9.3.0
CXX=/usr/bin/g++-9.3.0
CFLAGS=-g
CXXFLAGS=-g
【问题讨论】: