797 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Tooling
0
votes
2
replies
50
views
How to resolve conflicting versions of the same library required by two dependencies in Conan 2.0?
I'm using Conan 2.0 as a package manager for a C++ project and facing a dependency version conflict. Two pre-compiled libraries I need (cpr/1.14.1 and prometheus-cpp/1.3.0) require different versions ...
Best practices
0
votes
2
replies
37
views
How to deploy a project built with cmake and conan deps?
i struggle to understand what should be workflow for using conan inside cmake.
I want CMakeLists.txt to do everything...
So that it can be used to open in various (I)DEs, build and debug the program, ...
Advice
1
vote
5
replies
84
views
How to guarantee ABI compatibility for a C++ library exposing third-party types (fmt) in headers using Conan?
I am developing a C++ library (MyLib) that relies on third-party libraries (specifically fmt). My library consists of public headers and pre-compiled binaries.
The Constraint:
I must distribute MyLib ...
1
vote
0
answers
78
views
Problem to set up conan project so that library can be found in search path
I have this project structure:
MaterialStack/
├─ CMakeLists.txt
├─ libraries/
│ └─ material_data_lib/
│ ├─ CMakeLists.txt
│ ├─ conanfile.py
│ └─ src/...
0
votes
0
answers
74
views
Why does conan info require a lockfile?
I am using conan 1.66.0 and when I try to run
conan info conanfile.py -pr:h $host_profile -pr:b $build_profile
I get this error:
ERROR: Missing lockfile in: /path/to/conanfile.py
Doing first conan ...
0
votes
1
answer
316
views
How to set exact MSVC toolset version in Conan2 + cmake . Build using ninja
I need to set up conan 2 + cmake C++ project build so it will always use VCToolsVersion "14.40.33807" when several toolsets are installed on the desktop.
0
votes
0
answers
116
views
'There is a cycle/loop in the graph' — what causes it?
I am building a package that depends on two tools: toola and toolb.
These tools may depend on different CMake packages.
In my package recipe, the tool dependencies are declared as:
tool_requires = (
...
5
votes
0
answers
355
views
Generate Python wheels with conan
I want to generate Python wheels for my project (the last step before to put them on PyPI). I use conan for that. CMake found system dependencies but not conan dependencies for Ceres, Eigen and ...
0
votes
1
answer
55
views
undefined reference to namespace::function?
I am trying to explore how to work with Conan through CLion, CMake and everything and so far I have a main project which depends on fmt/10.1.1 and from a personal library. What am I doing wrong here, ...
0
votes
1
answer
139
views
Try to use `tools.build:skip_test` for a conan project
I have a conan project which provides CMake features.
In this project I want to test these features through C++ programs.
When I do a conan create ., I want the tests to be done only with an option ...
0
votes
0
answers
140
views
Using Conan v-2.x built packages of one build type in a cmake project building using another build type
When using a single configuration environment of UnixMakeFiles, and Conan 1.x, it was easy to specify a build type in the Conan profile, and use the packages in cmake using cmake generator and the ...
0
votes
0
answers
145
views
Conan Header Not Found: Header Exists in Package but Fails to Compile in CMake Project
I'm working with a C++ project using Conan for dependency management and CMake as the build system.
I created a new Conan package for a static library called mylib. The header files are located under ...
1
vote
2
answers
183
views
Unable to build conan package dependencies [GTest] with tool_requires(cmake)
I have such simple package in conanfile.py in root of my project that looks like this:
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake, cmake_layout
class ...
0
votes
0
answers
487
views
conan create throws compiler.cppstd 14 vs 17 compatibility error
Task is to generate static libraries out of the SDKs we currently have for various OSs.
I have generated the artifacts for my project, use it to run a conan install and cmake in the build_release ...
0
votes
1
answer
60
views
Cmake with Conan Multiple Includes Retain Path
I am trying to create a library or possibly better to make two libraries. The file structure is below (with generic names). I am trying to get the ExampleProject to be able to include messageA.h, ...