Questions tagged [conan]

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.

Homepage

Documents

Github Repository

662 questions
43
votes
8 answers

_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 on a bunch of .obj's on compile, not sure what…
meds
  • 21,699
  • 37
  • 163
  • 314
16
votes
1 answer

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 my source files are copied in 3 different folders…
Marco Stramezzi
  • 2,143
  • 4
  • 17
  • 37
14
votes
0 answers

Differences between conan and conda package managers

For C/C++ packages, what are the practical differences, i.e. from the point of view of a developer, between conan and conda?
Nibor
  • 1,236
  • 9
  • 23
11
votes
6 answers

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 with Conan's include, no auto-completion is…
Bibas
  • 498
  • 1
  • 4
  • 17
10
votes
1 answer

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 working in my environment. However, conan doesn't…
SethMMorton
  • 45,752
  • 12
  • 65
  • 86
9
votes
1 answer

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 ip_filter.cpp) target_link_libraries(ip_filter…
Bogdasar
  • 181
  • 1
  • 1
  • 9
9
votes
1 answer

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 (libuv). The libraries aren't important to the…
Andrew E
  • 7,697
  • 3
  • 42
  • 38
8
votes
1 answer

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 very…
Farahi
  • 95
  • 1
  • 6
8
votes
1 answer

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 specified in your conan profile: 11.0 Compiler…
Kiloris
  • 101
  • 1
  • 6
8
votes
1 answer

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 error will appeared: ERROR: conanfile didn't…
hdnn
  • 1,807
  • 3
  • 13
  • 20
8
votes
1 answer

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 Artifactory server. These scripts are now failing with…
Chris S.
  • 85
  • 1
  • 1
  • 6
8
votes
1 answer

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} \ -DANDROID_NDK=$ANDROID_NDK_HOME …
guorongfei
  • 309
  • 2
  • 10
7
votes
1 answer

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 consuming the library is very useful to be able to…
bobeff
  • 3,543
  • 3
  • 34
  • 62
7
votes
2 answers

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 provided example was to simple. I compile under up to…
erikzenker
  • 752
  • 5
  • 18
6
votes
1 answer

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.1 [generators] cmake main.cpp: #include…
psarka
  • 1,562
  • 1
  • 13
  • 25
1
2 3
44 45