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
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
0 votes
1 answer
4k views

Howto modify/affect/adapt conan dependencies

I am not a conan expert, so maybe there is an obvious solution for this. But it can't be trivial since I am struggling with this for a while and can't find a solution. We need parquet for our project, ...
Ralf Ulrich's user avatar
  • 1,719
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
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
2 votes
1 answer
3k views

How to use CMake file provided by a Conan package?

Bret Brown in his talk Modern CMake Modules recommends using Conan (or other package manager) to deliver reusable CMake code. As instructed by Brett I've created a Conan package that delivers a ...
Zbyl's user avatar
  • 2,320
1 vote
1 answer
3k views

Undefined reference using external library with CMake and Conan

I am trying to develop a program that communicates with a PCSC USB reader using Conan and CMake with the LibLogicalAccess library. I followed the instructions of building and installing the library ...
R D's user avatar
  • 13
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
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
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
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
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
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
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
1 answer
7k views

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 ...
h0tfus3's user avatar
  • 572
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
3 votes
0 answers
5k views

ERROR: Conanfile not found when using a conanfile.txt

I am trying to build a simple test project using gTest as a dependency. My conanfile.txt looks like: [requires] gtest/1.13.0 [generators] CMakeToolchain CMakeDeps [layout] cmake_layout Installing ...
evolved's user avatar
  • 2,290
3 votes
1 answer
2k views

Setting up Vulkan, glfw and spdlog correctly using CMake and conan package manager

I'm working on a renderer for Vulkan API. I have big trouble setting up the project correctly using CMake and conan package manager. Let's take a look at my conanfile.py for dependency setup: from ...
Johannes Schneider's user avatar
2 votes
2 answers
2k views

Qt + conan = using null output device, none available

I write my pet project. At first, it was based on cmake and I set the path to qt libs from the console, e.g. cmake -DPATH_TO_QT:STRING=/home/user/Qt/5.11.1/gcc_64/ The variable PATH_TO_QT was declared ...
igdev's user avatar
  • 351
2 votes
0 answers
2k views

CMake not finding boost libraries from conan

So I'm trying to get my cmake to work with conan/boost. For this I have a simple conan file: from conans import ConanFile class Boost_Conan_Cmake_MinimalConfig(ConanFile): name = "...
Kruemelmonster's user avatar
2 votes
0 answers
2k views

How to create conanbuildinfo.cmake file in Conan 2 without --install folder option?

I am using Conan to compile a complex Cpp program. I saw that with the new version of Conan the --install folder parameter has disappeared. I need to create the conanbuildinfo.cmake file (it is ...
Gabriele's user avatar
2 votes
4 answers
3k views

Additional include paths and linker options Gradle for C++

I was trying to use Gradle to compile a C++ project, but I can't find the way of declaring what additional include paths I want at compile time, and what additional libraries at link time. I've seen ...
Sigma Octantis's user avatar
2 votes
1 answer
3k views

Why can't I link to spdlog library installed with conan

I have a simple CMake project and try to use the spdlog library (version 1.5.0) installed by conan. But when building I get the following error: undefined reference to `spdlog::get(std::__cxx11::...
samoncode's user avatar
  • 486
2 votes
0 answers
4k views

Using Conan to install packages directly from GitHub

Following this feature request, there are some Conan packages hosted on Bincrafters GitHub organization: Conan package for OpenCL Headers Conan package for Khronos OpenCL CLHPP Conan package for ...
Foad S. Farimani's user avatar
1 vote
0 answers
647 views

Conan conflict in libpng/1.6.34@bincrafters/stable on Windows

I cannot install all my project dependencies on Windows using conan. This error occurs each time when I do conan install . --build: ERROR: Conflict in libpng/1.6.34@bincrafters/stable Requirement ...
DevHugo's user avatar
  • 129
1 vote
0 answers
2k views

cmake does not link conan's installed library

I'm setting up a c++ project, which uses cmake and has two build type: debug, having a cmake-build-debug folder release, having a cmake-build-release folder I want to add plog through cmake, so I ...
Bertuz's user avatar
  • 2,618
1 vote
2 answers
462 views

Unexpected path to libprotocd.lib after add gRPC::grpc++ library dependence in CMake

I have a gRPC 1.23.0 compiled by conan(and all dependencies also resolved by conan). And I have a CMake project, that use grpc library: set (LIB_DEPS protobuf::libprotobuf gRPC::grpc++ ) ...
hdnn's user avatar
  • 2,237
1 vote
2 answers
4k views

Installing gtest with conan

I am about to change to conan, in the hope that is will simplify installing my package by my users. It was OK, until I started to add gtest to my package. During install, I receive messages gtest/1....
katang's user avatar
  • 2,826
1 vote
2 answers
763 views

cmake building a project with conan files generates an error

I'm trying to run a project for an example of the Oat++ framework by loading libraries using conan. My algorithm of actions: In the project directory, I run the command conan install . --output-...
Ebenezer Scrooge's user avatar
1 vote
1 answer
483 views

Libtorch crashes immediately after program starts when build from source on Windows

Hi I'm building Libtorch from source. I'm using Conan, so that I'm able to have same version of dependencies in my project and in Libtorch. Build works just fine but after including Libtorch in my ...
TheMejky's user avatar
1 vote
0 answers
1k views

How to use GCC with Conan & CMake on MacOS

I am tryting to setup a build of a project on my Macbook which should use GCC with both Conan & CMake. I have set the following environment variables: export CC=/usr/local/bin/gcc-12 export CXX=/...
mark's user avatar
  • 7,707
1 vote
1 answer
1k views

How to run the Doxygen binary installed by its Conan package inside a CMake script?

Currently, I programmatically generate a conanfile.txt using two functions I have written: message(STATUS "Fetching Doxygen from Conan.") add_project_dependencies(${PROJECT_NAME}_docs CONAN ...
Saeid Akbari's user avatar
0 votes
1 answer
1k views

CMake cannot find BLAS libraries after installing OpenBLAS via Conan

I am working on a project that uses Fortran and requires BLAS libraries. I've decided to use OpenBLAS, which I installed via Conan. However, I'm encountering an issue where CMake cannot find the BLAS ...
Foad S. Farimani's user avatar
0 votes
1 answer
821 views

Always use specific toolchain (profile agnostic) to build the app

I want my conan build . to always use a certain toolchain, say clang++14 and cmake 3.20 to build itself and its dependencies. How can I accomplish that? The reason is that our company uses either ...
glades's user avatar
  • 5,346
0 votes
1 answer
586 views

Illegal instruction signal for arrow parquet. How to build with Conan without AVX2

I'm using conan to build a library that uses arrow parquet. I built arrow myself because I couldn't find versions in conan center that included parquet: In my conanfile.txt [options] arrow:shared=True ...
JACH's user avatar
  • 1,048
0 votes
1 answer
488 views

MSBuild flags to build for WindowsStore / UWP

Two days of research gave me no results. I want to configure a conanfile to build an existing .sln for UWP / WindowsStore, to make sure everything is allowed. Here's an MSBuild part of the conanfile....
arsdever's user avatar
  • 1,304
0 votes
1 answer
282 views

Conan recipe dependencies

I am starting to learn conan and I have a doubt. Lets say I have a library that depends on boost and on cgal. Cgal it self depends also on boost. If I have a recipe for cgal, how would I indicate ...
jjcasmar's user avatar
  • 1,757
0 votes
1 answer
829 views

Missing user and channel fields in google-benchmark conan package

I am trying to install the google benchmark library using the C++ package manager Conan. However, the user and channel fields seem to be missing from the conan-center. I also get an error if I try to ...
Touloudou's user avatar
  • 2,293