Conan is a portable package manager, intended for C and C++ developers, but it is able to manage builds from source, dependencies, and precompiled binaries for any language.
Questions tagged [conan]
662 questions
6
votes
1 answer
How to make GitLab Windows shared runners to build faster?
Background
I have a CI pipeline for a C++ library I've been developing. So far, I can distribute this lib to Linux and Windows systems. Since I use GitLab to build, test and package my lib, I'd like to have my Windows builds running faster and I…

Rodrigo Novaes
- 168
- 1
- 6
6
votes
1 answer
Is there a way to add python dependencies to conan package
I am setting up a project using multiple libraries and packages in C/C++ and Python.
I would like to setup a binary repository for C/C++ packages and a python package index server for python packages.
I stumbled upon conan and artefactory to handle…

Alexper
- 143
- 2
- 8
6
votes
3 answers
Is Conan repository available in Artifactory OSS?
The webpage for JFrog's Artifactory OSS makes it seem like it's part of OSS https://www.jfrog.com/open-source/#conan. I'm trying it out in a Docker container and "Conan" doesn't show up as a clickable option in new local repository.
Am I…

loneraver
- 1,282
- 2
- 15
- 22
6
votes
1 answer
Language/Platform/Build-Independent Dependency Manager
I'm in need of a dependency manager that is not tied to a particular language or build system. I've looked into several excellent tools (Gradle, Bazel, Hunter, Biicode, Conan, etc.), but none satisfy my requirements (see below). I've also used Git…

Ken
- 693
- 1
- 7
- 15
5
votes
3 answers
How to fix Qt requires a C++17 compiler?
I use conan-installed Qt-6.2.2.
I created Qt Widgets Project in VS-2019, switched language to std:c++17, added /Zc:__cplusplus to additional options.
Since this is conan-installed QT, it don't have Qt.props, so I manually created one which includes…

user1633272
- 2,007
- 5
- 25
- 48
5
votes
1 answer
HTTPSConnectionPool error when trying to install gtest with conan
I'm trying to use conan to install gtest but when I do so I have the following error:
gtest/1.11.0: Not found in local cache, looking in remotes...
gtest/1.11.0: Trying with 'conancenter'...
ERROR: HTTPSConnectionPool(host='center.conan.io',…

Xwilarg
- 364
- 1
- 6
- 16
5
votes
2 answers
conan Permission denied for user
I have a project that uses arrow and parquet. I downloaded and built the required libraries, and then successfully built my library. Now I want to migrate it to use conan, to simplify the build process.
The problem I'm facing is that most if not all…

JACH
- 996
- 11
- 20
5
votes
1 answer
Install only a part of boost using conan
I'm using the conan package manager to install my dependencies for a project. That project needs boost system only of all boost libraries, since I'm only using asio and beast.
However, conan installs every part of boost, which is undesirable. If I'm…

Guillaume Racicot
- 39,621
- 9
- 77
- 141
5
votes
1 answer
ConanException: Package require 'qt' not used in components requires
I've created a project which has two targets, core.dll and runner.exe.
Core.dll depends on Qt5::Core.
Runner.exe depends on core.dll.
Also I've created a conan recipe conanfile.py.
I defined qt in requirements:
def requirements(self):
…

Bob
- 1,433
- 1
- 16
- 36
5
votes
3 answers
cmake, conan, and qt hello world project build error
I am new to StackOverflow, Conan, and CMake.
I am trying to build a hello world program that depends on Qt with CMake. I have cloned it from a public repository cmake-hello-world and compiled it successfully.
Now, I am trying to conanize this…

Kanth
- 131
- 2
- 6
5
votes
1 answer
Relative RPATHs when building conan / cmake project on MacOS
I have a simple C++ project with a dependency on Intel TBB (which requires the use of shared libraries). I'm trying to build this using the Conan package manager combined with CMake, and I've already been able to use this setup to add non-shared…

Dave
- 44,275
- 12
- 65
- 105
5
votes
1 answer
Cannot collect patch dependency on a local Artifactory Pypi repository
While testing out conan, I had to "pip install" it.
As I am working in a fully offline environment, my expectation was that I could simply
Manually deploy all dependencies listed in…

Arnaud Jeansen
- 1,619
- 15
- 27
5
votes
1 answer
How to link only to some of the libraries in Conan package?
I'm considering to start using Conan package manager for managing third party dependencies of my C++ projects, but I cannot find how to link only to some of the libraries in Conan package. I'm using CMake as build system and I'm using Conan multi…

bobeff
- 3,543
- 3
- 34
- 62
5
votes
1 answer
conan.io - header only package
I'm trying to create a simple demo header only library called foo and require it another library called bar.
The structure of foo is this:
foo/include/foo.hpp - just a test header file...
foo/conanfile.py
from conans import ConanFile, CMake
class…

Stefano Azzalini
- 1,027
- 12
- 21
5
votes
1 answer
How does one package inter-dependent libraries with Conan?
I have a project for which I am trying to use conan as the package manager.
The project uses a large number of libraries, most of which are self-sufficient. However, some of them depend on another library.
To give a concrete example, let's say we…

Michel
- 617
- 7
- 14