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
4
votes
1 answer
How can I build/install Qt-6 with conan?
I an trying to install Qt with conan. I am following instructions on
https://wiki.qt.io/Using_Conan_for_Qt6#Connecting_to_Conan_remote
which says that
Login to your Qt Account and click on the "Conan Package Manager" link.
However, there is no…

katang
- 2,474
- 5
- 24
- 48
4
votes
3 answers
Error bootstrapping makefile fragments while building libjpeg/9d with Conan
I have been trying for several days to install OpenCV with Conan (on Windows 10). However, the installation is failing on building the libjpeg/9d dependency.
Conan profile:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug …

Valeria
- 1,508
- 4
- 20
- 44
4
votes
2 answers
is there any way to use conan package in meson?
We can use meson build system in conan. But I cannot find any document about how to add conan package as dependency in meson.build. It is very simple in cmake, we can simply use conan_cmake_run. How can I do the similar thing in meson?

Wang
- 7,250
- 4
- 35
- 66
4
votes
3 answers
How to use gtest via conan
I'm currently learning about Conan. As a practice projcet I would like to create a library with unit tests (I am well aware that using conan for gtest is not the most usefull thing to do, but this is just an example).
My project…

A. Osterthun
- 175
- 1
- 3
- 18
4
votes
2 answers
Authentication error while installing boost with Conan
I'm trying to install boost with the following conanfile.txt…

user3453488
- 41
- 2
4
votes
1 answer
Conan, CMake.test() generate XML report
I am currently in the process of introducing Conan.io (Version 1.20.5) to my project.
With Cmake.test(), I am missing the XML testreport that was previously generated by calling ctest -T test directly.
Here is the conanfile.py build() excerpt:
def…

chris polzer
- 3,219
- 3
- 28
- 44
4
votes
0 answers
How can I import a .props file that gets generated by a Target?
Background
I am attempting to build a C++ Visual Studio project. My project is Importing an MSBuild .targets file that specifies a single Target, "SetupConanDependencies". This Target uses the conan tool to install dependencies for a project based…

cariehl
- 151
- 5
4
votes
1 answer
CONAN_PKG:: not found when using cmake to generate build target
CONAN_PKG::spdlog is not found when using CMake to generate build configurations.
The conan package I use is spdlog/1.3.1@bincrafters/stable.
I have a CMake executable target which references a conan package spdlog. I am getting this error…

user3691191
- 547
- 1
- 10
- 20
4
votes
1 answer
Using conanfile.txt and conanfile.py in the same directory
I have a C++ library that I build using Conan. It has a conanfile.txt with some dependencies and options. I build it using conan install ... to build thirdparty libraries and create conan config, and then using cmake to build the library itself.
Now…

Rinat Veliakhmedov
- 1,021
- 1
- 19
- 36
4
votes
2 answers
Artifactory's Conan repository is Not Found
I am trying to setup Artifactory OSS repository with Conan. Everything seems to work fine in Artifactory console. In instructions of "Set me up" in Artifacory OSS it says:
To add the repository to your conan CLI, use:
conan remote add …

Ugnius Malūkas
- 2,649
- 7
- 29
- 42
4
votes
1 answer
Link only static library when both static and shared C++ libraries are present in lib folder
I am using conan as dependency manager and cmake as build tool. I have some pre-built third party libraries present, which have both shared and static libraries in the lib folder ( .a and .so files ). My plan is to create conan packages from those…

Amit Jain
- 231
- 5
- 14
4
votes
1 answer
Dependency management using Conan with a CMake project under VS2017
I'm trying to setup a development environment for C++ to compile under Linux x64 using CMake integration with VS2017. To better manage dependencies I choose to use Conan but I'm pretty new to this software and I'm wondering what's the best way to…

nunob
- 592
- 7
- 24
4
votes
1 answer
How to install a package in the local store?
I'm working with conan 0.16.0 and I can't figure how to install a package in the local store.
My idea is to create a recipe, create every package I want from the recipe, install them in the local store and then upload them on a conan server to make…

dkg
- 1,775
- 14
- 34
4
votes
1 answer
How do I make conan generate a FindXXX.cmake?
I have been creating packages with conan for all the libraries one of the projects I work on uses.
I've created a conanfile.py for each and all is well.
I've created a conanfile.txt for a dummy code to make sure all is working as expected.
I've…

Michel
- 617
- 7
- 14
3
votes
1 answer
Error with Boost Filesystem Version in Cmake
I'm working on a c++ program that uses cmake with conan to compile, and boost 1.7.4. Recently, I started getting: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3.
The program was working fine up until…

wfjohns1
- 31
- 2