Linux conan安装在名称和版本字段上失败
相关文件:Linux conan安装在名称和版本字段上失败,linux,conan,Linux,Conan,相关文件: . ├── 箱子 ├── src ├── 康纳菲尔 └── gcc-9.3.0-linux-x86-debug.profile 当尝试从bin文件夹运行以下命令时,我得到一个错误,即在配置文件中找不到名称和版本字段。 $conan安装--profile../gcc-9.3.0-linux-x86-debug.profile 错误:读取“../gcc-9.3.0-linux-x86-debug.profile”时出错配置文件:指定“名称”和“版本” 但是如果我理解正确,版本和名称应该在
.
├── 箱子
├── src
├── 康纳菲尔
└── gcc-9.3.0-linux-x86-debug.profile
当尝试从bin文件夹运行以下命令时,我得到一个错误,即在配置文件中找不到名称和版本字段。
$conan安装--profile../gcc-9.3.0-linux-x86-debug.profile
错误:读取“../gcc-9.3.0-linux-x86-debug.profile”时出错配置文件:指定“名称”和“版本”
但是如果我理解正确,版本和名称应该在conanfile.py文件中定义。在哪里定义install命令缺少的名称和版本号
相关柯南简介
[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
您还需要在
[build\u requires]
中指定版本(与conanfile.txt
和conanfile.py
文件中相同)。仅指定名称是无效的语法。比如:
[build_requires]
cmake/3.16.4
如果您需要它,版本范围是可能的,例如cmake/[>3.15]
应该可以工作