Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
47 votes
8 answers
92k views

_iterator_debug_level value '0' doesn't match value '2'

I've just moved over a Visual Studio (C++) solution over to another computer, setup all the directories and settings as far as I can see, and did a clean/rebuild on the solution. I get the error above ...
meds's user avatar
  • 23.2k
20 votes
2 answers
30k views

Repository clean up

I am adding Conan support to my CMake projects. I followed Recipe and sources in the same repo tutorial and I end up with the expected package. Exploring the local repository folder, I found out that ...
Marco Stramezzi's user avatar
15 votes
0 answers
3k views

Differences between conan and conda package managers [closed]

For C/C++ packages, what are the practical differences, i.e. from the point of view of a developer, between conan and conda?
Nibor's user avatar
  • 1,258
14 votes
7 answers
18k views

Linking Conan Include to VS Code

I'm currently using Conan on a C++ project using sqlite_orm as a dependency. When using my personal include (like myClass.hpp for example) Visual Studio Code is able to provide auto-completion but ...
Bibas's user avatar
  • 538
13 votes
1 answer
14k views

How to force conan to build from source, but only if it is not in the cache?

I am using conan in an enterprise environment where the operating system is rather old and has an old version of glibc (2.11). As a result, a lot of the pre-built binaries on conan.io do not end up ...
SethMMorton's user avatar
  • 49.4k
12 votes
1 answer
11k views

How do I publish a Conan package locally?

I'm new to Conan but experienced with cmake/make/studio etc. I'm trying to build a simple program that uses a library (uWebSockets) that uses another library (uSockets) that uses another library (...
Andrew E's user avatar
  • 8,455
10 votes
1 answer
18k views

How to fix unknown command error in CMake, when I using Conan?

I've got CMakeLists.txt file: project(ip_filter LANGUAGES CXX) cmake_minimum_required(VERSION 2.8) include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup() add_executable(ip_filter ...
Bogdasar's user avatar
  • 301
9 votes
1 answer
8k views

What is the difference between conanfile.py, conanfile.txt, conanprofile and settings.yml?

I have been trying to build Conan packages of my project for a week. I have been reading the documentation but there are many points that I'm still confused about. There are 4 files that I think are ...
Farahi's user avatar
  • 105
8 votes
2 answers
6k views

Cant create boost conan package from conan-center-index - "conanfile didn't specify version"

I try to create conan package of boost library. I got the recipe from https://github.com/conan-io/conan-center-index/tree/master/recipes/boost When I execute command: conan create . conan/stable next ...
hdnn's user avatar
  • 2,237
8 votes
1 answer
16k views

How to avoid a Conan SSL user authentication error with Jenkins Artifactory plugin?

My company is new to Conan, Artifactory, and Jenkins, but we set up some test pipeline scripts a few months ago and utilized the Jenkins Artifactory plugin to publish some Conan packages to our ...
Chris S.'s user avatar
8 votes
1 answer
11k views

CMake Error: mismatch for the compiler version between your conan profile

I'm on MacOS. This is my error : CMake Error at build/conanbuildinfo.cmake:625 (message): Detected a mismatch for the compiler version between your conan profile settings and CMake: Compiler version ...
Kiloris's user avatar
  • 121
8 votes
1 answer
3k views

why android ndk standalone toolchain do not support arm64 with api 19 but android ndk cmake does

I used to build arm64-v8a lib of api level 19 use android.toolchain.cmake comes with Android NDK r16b like this. ${CMAKE} \ -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \ ...
guorongfei's user avatar
8 votes
1 answer
5k views

Can I retrieve the source code of the library packaged with Conan package manager to be able to debug in it?

Typically Conan package contains only build artifacts like *.dll, *.lib, *.pdb, *.so, *.a, *.dylib files as well headers of given C or C++ library. However sometimes when you debugging your code ...
bobeff's user avatar
  • 3,771
7 votes
2 answers
7k views

GTest installed with Conan: undefined reference

I tried to use gtest installed through conan, but ended up with an undefined reference linker error. This question is a more or less a follow up to this stackoverflow question. But I think the ...
erikzenker's user avatar
7 votes
3 answers
2k views

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 ...
loneraver's user avatar
  • 1,442
7 votes
4 answers
14k views

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....
user1633272's user avatar
  • 2,343
7 votes
1 answer
9k views

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 ...
Guillaume Racicot's user avatar
6 votes
4 answers
24k views

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 ...
Valeria's user avatar
  • 1,297
6 votes
1 answer
6k views

CONAN_PKG::<PKG-NAME> 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 ...
user3691191's user avatar
6 votes
2 answers
2k views

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 ...
chris polzer's user avatar
  • 3,367
6 votes
2 answers
9k views

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 ...
JACH's user avatar
  • 1,048
6 votes
1 answer
6k views

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....
Alexper's user avatar
  • 373
6 votes
1 answer
1k views

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 ...
Ken's user avatar
  • 723
6 votes
1 answer
3k views

Cmake: using conan pybind11 package

I'm having trouble understanding how to use pybind11 conan package. I can use some others, but pybind11 is giving me hard time. My starting point is as follows: conanfile.txt: [requires] pybind11/2.7....
psarka's user avatar
  • 1,852
6 votes
1 answer
2k views

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 ...
Rodrigo Novaes's user avatar
5 votes
1 answer
4k views

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: ...
Xwilarg's user avatar
  • 424
5 votes
1 answer
5k views

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/...
Stefano Azzalini's user avatar
5 votes
1 answer
4k views

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 ...
Bob's user avatar
  • 1,447
5 votes
1 answer
3k views

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 ...
Dave's user avatar
  • 46.8k
5 votes
1 answer
1k views

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 https://github....
Arnaud Jeansen's user avatar
5 votes
2 answers
3k views

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 ...
Ugnius Malūkas's user avatar
5 votes
1 answer
4k views

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 ...
Michel's user avatar
  • 617
5 votes
1 answer
2k views

Installing dependencies with conan on github actions takes too long

I have built a Github workflow that installs Conan to manage a bunch of C++ dependencies along with CMake. It works great and I can test that: my environment works my library builds tests pass at ...
WaterFox's user avatar
  • 1,236
5 votes
1 answer
8k views

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 ...
bobeff's user avatar
  • 3,771
5 votes
2 answers
3k views

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 ...
Wang's user avatar
  • 8,416
5 votes
3 answers
7k views

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 ...
Kanth's user avatar
  • 141
5 votes
0 answers
341 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 ...
P'tit Ju's user avatar
  • 143
5 votes
1 answer
4k views

Conan package header files not found with cmake

I have set up a C++ project using Conan and Cmake. I have executed the following commands: conan install . --install-folder cmake-build-release --build=missing cmake . -DCMAKE_TOOLCHAIN_FILE=cmake-...
Nils van Lück's user avatar
4 votes
2 answers
12k views

How to choose Ninja as CMake generator with Conan?

While trying to follow along Conan's Getting Started guide for creating packages, I got stuck trying to run conan create . demo/testing. It continuously tries to use MinGW Makefiles as the CMake ...
Zantox's user avatar
  • 53
4 votes
3 answers
12k views

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 ...
A. Osterthun's user avatar
4 votes
1 answer
3k views

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 ...
Rinat Veliakhmedov's user avatar
4 votes
2 answers
3k views

Integrating uWebSockets into a CMake project

I want to use uWebSockets for my own project which uses CMake. There are two issues for me: uWebSocket uses Make as well as I think its own build system/file build.c? It depends itself on other ...
jack's user avatar
  • 1,832
4 votes
2 answers
9k views

gtest installed with conan: undefined reference to `testing::internal::GetBoolAssertionFailureMessage`

I use cmake to build my project and conan to install Google Test as dependency: conanfile.txt [requires] gtest/1.7.0@lasote/stable [generators] cmake [imports] bin, *.dll -> ./build/bin lib, *....
maiermic's user avatar
  • 4,984
4 votes
1 answer
2k views

Difference between conan create and conan install

I have seen that the two commands can sometimes be used interchangeably. Can anyone point to the actual difference, and when you'd use conan install vs. when you'd use conan create?
steep's user avatar
  • 123
4 votes
1 answer
4k views

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 ...
Michel's user avatar
  • 617
4 votes
2 answers
7k views

Creating conan test_package recipe

I'm currently playing around with conan. So I've created two small project: The first project is a small library "fcdk": https://github.com/lmarzull/fcdk/tree/devel The second is a project holding ...
Gojita's user avatar
  • 610
4 votes
1 answer
4k views

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 ...
dkg's user avatar
  • 1,785
4 votes
1 answer
673 views

ClangTidy + CMake - ignore third party headers from Conan

I am trying to use ClangTidy on some working source code but I cannot get it to ignore / bypass lib{fmt} and see lots of noise such as: ~/.conan/data/fmt/9.1.0///package/...
mark's user avatar
  • 7,707
4 votes
1 answer
4k views

Linking Boost when using cmake-conan

1 - Initial situation Problem description I am trying to have the following CMake project working: the idea is to use cmake-conan to have cmake handle the conan install step (sparing the user the need ...
WaterFox's user avatar
  • 1,236
4 votes
1 answer
2k views

Can I write a Conan recipe to download and install a package from the web?

We just started using conan, so I'm still new. One of our dependent libs doesn't have a conan recipe (it's just a cmake-based project on github). Can I write my own local recipe to download it from ...
GaryO's user avatar
  • 6,438

1
2 3 4 5
16