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
0
votes
0 answers

CXX CMake compiler prefix with executable not working

I am following Parasoft code coverage to run it on my source code : https://docs.parasoft.com/display/CPPTEST1040/Instrumenting+and+Building+Instrumented+Source+Code I have defined CXX as an environment variable in my new conan…
User001
  • 91
  • 8
0
votes
1 answer

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 that I want to use the same boost version that I am…
jjcasmar
  • 1,387
  • 1
  • 18
  • 30
0
votes
1 answer

Conan and gRPC: Undefined references to various `gpr_` symbols

This is an issue with using gRPC with Conan in my project. In short, I have a gRPC based project, and my dependencies are: requires = ( "predictions-algorithms/15.16.51@navassist/testing", "grpc/1.20.0@inexorgame/stable", …
Lyn
  • 23
  • 1
  • 8
0
votes
1 answer

Application deployment with 3rd-party dependencies for both Linux and Windows, using CMake and Conan

I'm working on a project, which targets both Windows and Linux (and possible in the future MacOS). It consists of some applications with several shared libraries. It is written in modern C++ and modern CMake. It also uses 3rd-party libraries like…
akowalew
  • 48
  • 4
0
votes
1 answer

sqlite do not link at compile time on windows

I met a weird problem. I can not link against sqlite3 lib (with a fresh installation of conan). I am trying to add sqlite3 to a project of mine that already contain a lot of boost code, but this the first time I met this kind of error. int main(int…
0
votes
1 answer

conan error:I need to cross build packages for os:iOS with my Macos, but when the first package was done, it broke my cpt while testing

I want to use cpt to cross build several iOS packages with the arch "armv7", "armv8", "x86_64" and the build_type "Debug", "Release". But when the first package was testing, it broke my building with that "/bin/sh: bin/test_package: Bad CPU type…
0
votes
1 answer

How can I make a release build available during development and deployment?

Our development workflow forces us to always deploy a specific 3rd party dependency in Release mode whether we're developing or releasing the final product. I'd like to be able to make this specific build available when I'm developing, ie, all…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
0
votes
1 answer

How can I install Boost Property Tree with conan?

I'm trying to install Boost's Property Tree library ("boost_property_tree/1.70.0@bincrafters/stable") but am not capable to do so, I always get an error saying it's not available: C:\Users\RHPACHECO\Desktop\kv\CMakeBasedCore\kvcore\build (master ->…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
0
votes
1 answer

After installing gtest, gmock_main.cc replaces my main.cc

I experience that when 'gtest' is installed by 'conan', my 'gmock_main' somehow replaces my 'main'. I am step-by-step adding more libraries to my program, using more and more lines to conanfile.txt, clear the generated files in subdirectory build,…
katang
  • 2,474
  • 5
  • 24
  • 48
0
votes
1 answer

How to use an msbuild CopyTask to copy a list of directories recursively

I would like to copy a list of directories recursively using a CopyTask. The list is defined by a macro like so; some/path/;another/path/; I know a CopyTask can copy a single directory recursively,…
jossgray
  • 497
  • 6
  • 20
0
votes
1 answer

Using shared library with Conan.io within Android

I have a pre-built shared library (architecture ARM) which I exported as a conan package: conan export-pkg .. ext/stable --force -pr android_19_arm_clang Next I want to use this library in my Android project. I have Conan and CMake setup like…
Soccertrash
  • 1,830
  • 3
  • 28
  • 48
0
votes
1 answer

Conan-based Qt installation uses wrong home dir for linking

I'm trying to build our application using Qt 5.13.0 installed via Conan/Artifactory. We run our own Artifactory server and the Qt version there is self-build (and statically linked) in our CI solution. We use the Conan recipe for Qt written by the…
0
votes
0 answers

How to make lib files available to user in package recipe?

I'm creating a conan package for OpenCV but am at a loss on what to put in package_info. Building OpenCV places .lib and .dll files in the paths x64\vc15\lib and x64\vc15\bin. This means that once I install the package and try to link I get linker…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
0
votes
1 answer

Error installing header only package via conan

I have an internal header-only C++ library built with CMake. I followed conan's instructions on how to package header-only libraries and ended up with this conanfile.py: #!/usr/bin/env python # -*- coding: utf-8 -*- """ Conan file for…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
0
votes
1 answer

add directories as object-libraries to interface-library

The official way to build opencv_contrib packages with opencv is to build them with additional flags. This works well, but is not what I'm looking for, since I wanted to test out - and eventually settled for - a packageManager (conan) and couldn't…