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
2 answers

Conanfile.py that sets a cmake flag?

I have a third party library that I am now attempting to add a conan recipe so I can start to manage this library via conan... this third party library has a CMakeLists.txt that I need to manually add a compiler option... is there a way I can do…
Erik
  • 2,782
  • 3
  • 34
  • 64
0
votes
1 answer

Installing Qt5Svg with Conan

So I'm trying to port this project I've been working on from qmake to cmake. I also plan to get my qt dependencies through Conan and get a CI service going. Getting most of the qt libraries was fairly easy using qt/5.12.4@bincrafters/stable. Except…
0
votes
1 answer

Conan cannot find package id from new build server

I am consuming with Conan a project from the artifactory. The artifact was built in my Jenkins pipeline and was uploaded to the artifactory. I got 2 build servers, I want to move from the old one to the new one. When I am consuming the artifact that…
Omer Drory
  • 15
  • 3
0
votes
3 answers

SDL2 Mixer issue: Couldn't launch process

I'm running into a problem when using the SDL2 Mixer library in my C++ project. As soon as I'm calling a function on a class that #includes SDL_mixer.h, the project will not run. When trying to Run it, I get the following message: When debugging…
Bart K
  • 115
  • 1
  • 2
  • 8
0
votes
0 answers

Conan + Cmake.gui + Visual studio = 100% of nothing

So I was running a project in Qt creator which was going relatively ok, where I needed to generate some protobuf files and link against them. So I used conan: # conan if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake") message(STATUS "Downloading…
drone
  • 43
  • 1
  • 9
0
votes
1 answer

conan ...[clos ed]

I need to compile three packages from the same code, but the includes(same name xyz.h) in the cmake should get picked from different location for each of the package. As I am new to c++ and conan, please give pointers.
newbie
  • 35
  • 6
0
votes
1 answer

How to reference package from Conan recipe on github

I have a C++ (Windows, MSVC) project and I'm using Conan to manage external dependencies. So far, I've been adding dependencies by including them under [requires] in my conanfile.txt. I'm relatively new to Conan. Now I'm trying to reference the…
Zeenobit
  • 4,954
  • 3
  • 34
  • 46
0
votes
1 answer

CMakeToolchain object has no attribute write_toolchain_file

I am using Conan version 1.27.1 and trying to generate a toolchain from the existing setting in options in my profile file. The following example, which is provided in the Conan document…
user982042
  • 329
  • 3
  • 7
0
votes
1 answer

How to use conan to handle ImGui-SFML dependency in a cmake gcc project in Linux?

I want to handle the dependencies of a C++/cmake/gcc project in Linux using conan, and build an ImGui C++ demo as shown here: using imgui by Elias Daler I have used conan to handle Boost dependencies successfully, but with ImGui-SFML I am having a…
Lejuanjowski
  • 139
  • 1
  • 2
  • 6
0
votes
1 answer

How to install Conan package manager on openSUSE Tumbleweed the most correct way?

I googled it around 1 hour and have found a lot of answers, but not for my exact situation, which I think is very frequent. I need Conan for development and I use openSUSE. Recommended installation of Conan is: To install Conan using pip, you need…
Lukas Salich
  • 959
  • 2
  • 12
  • 30
0
votes
1 answer

How to fix library dependence in a conan package

I am trying to install qt/5.14.2 with conan. Using qt/5.14.2@bincrafters/stable I receive ERROR: libpq/11.5: Error in package_info() method, line 211 self.cpp_info.components["pq"].requires.append("zlib::zlib") AttributeError: 'Component'…
katang
  • 2,474
  • 5
  • 24
  • 48
0
votes
1 answer

Artifactory create conan channels

I have an artifactory server with a connan repository. Currently I have a CI system that pushes to a single conan channel acme/stable conan upload base64/1.0.0-2@acme/stable How would you create a second channel and restrict artifactory permissions…
spuder
  • 17,437
  • 19
  • 87
  • 153
0
votes
1 answer

Add to conan virtualenv from consumer

This is about the virtualenv-generator of conan: I have a provider-package that defines environment-variables using self.env_info. This means that when doing conan install in my consumer-package, i receive a convenient activate.sh script that sets…
0
votes
0 answers

How do I get CMake to use -l options for libraries instead of full pathnames for IMPORTED packages created by cmake_find_package?

Using conan and CMake 3.6, I have a conanfile.txt like this: [requires] boost/1.73.0@myProject-3rd-party-dependencies/rhel7 xerces-c/3.2.3@myProject-3rd-party-dependencies/rhel7 [generators] cmake cmake_find_package virtualenv virtualrunenv This…
0
votes
0 answers

Strange assigned owner of docker mounted volume

I am on a remote server where I am a user in the group docker. I created two volumes: docker create volume conan && docker create volume code` I am using the docker image called conanio/gcc10, so I run: docker run --rm \ -v…
shelper
  • 10,053
  • 8
  • 41
  • 67