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
1 answer

How to install applications on a windows docker container?

I'm trying to create a Docker container based on the abrarov/msvc-2019 (windows based) image and I need to install additional programs such as Conan. In the Dockerfile, what do I need to write in it to be able to install Conan? I can't just use…
0
votes
1 answer

Conan to look for alternative libraries in requires

I'm trying to create a conan package that has a dependency on a lib which have multiple possible implementations (for example openssl vs boringssl or OpenBlas vs BlasLapack) The problem is that I do not understand how to write this in conan: def…
OznOg
  • 4,440
  • 2
  • 26
  • 35
0
votes
0 answers

Is there a syntax error in the script in installing conan/pip

I am trying to follow on my Ubuntu 20.04.1 https://linuxhint.com/install_python_pip_tool_ubuntu/ At the step sudo python2 get-pip.py I receive the error Traceback (most recent call last): File "get-pip.py", line 24244, in main() …
katang
  • 2,474
  • 5
  • 24
  • 48
0
votes
0 answers

How to Link a static external lib using cmake

I am currently trying to build a conan package. Part of that is to prebuild a static library using cmake(repo). At the moment I can not figure out how to link the generated static lib inside another build. The library I am building is flecs Using…
0
votes
0 answers

Building a library while maintaining file structure with cmake and conan

I'm building a library containing multiple .h files and 1 .cpp file, in a structure such as this /include/A/B/f.h /include/A/B/C/d.h /include/G/h.h /src/K/l.h /src/K/l.cpp I want to keep the relative path between each of the files after building…
0
votes
0 answers

Conan giving me error no such file or directory: '/.conan/conan.conf'

I'm running the following connan command conan user -p AXXXXXXX -r TTT XXXXX For sure I know I have conan install as doing this: conan --version return Conan version 1.21.1 But I'm getting this error 12:01:14 + conan user -p **** -r TTT…
Diego
  • 916
  • 1
  • 13
  • 36
0
votes
1 answer

How to include all .so libraries across subdirectories

I have a bunch of .so libraries and I would like to include them similarly to this question (Ubuntu 18.04). I have followed the steps from the most upvoted answer from user1824407 I created .conf file sudo gedit…
Mechatrnk
  • 101
  • 1
  • 13
0
votes
0 answers

Include glfw3 headers fails with CLion / WSL / Conan toolchain

I am setting up a C++ CLion project to learn OpenGL, I started by adding the GLFW dependency with Conan on a WSL system on Windows, and I can't manage to include the GLFW headers after successfully configuring my CMake project. I am using : CLion…
joubs
  • 123
  • 8
0
votes
1 answer

multiple definition of zlib error when building with pybind11 and other lib uses zlib

Say I have libA and libB, both needs zlib 1.2.11, and both are compiled as static lib. my understanding is that static lib just put all .o files together. as such, both libA and libB will need zutil.c.o to resolve symbols in their .a files. Now I am…
shelper
  • 10,053
  • 8
  • 41
  • 67
0
votes
0 answers

Setting up conan in a fresh gitlab container

I have been attempting to get conan running inside of a docker container that also runs gitlab. I have been attempting to follow these two guides here: https://docs.gitlab.com/omnibus/docker/ ****Using the Selinux version, im on RHEL…
0
votes
0 answers

Problems with external .lib files and CMake build

i installed the cpprestsdk (Casablanca) (cpprest142_2_10) with the conan pkg installer for cmake. I use a Win 10 System with MS VS Code as IDE. Compiler is MSVC 2019 amd64_x86. My intellisense for C/C++ found the .h files in my user/conan./…
0
votes
0 answers

Linker error with assimp, conan and cmake

I'm trying to use assimp in my project. I get assimp with conan and cmake: macro(run_conan) # Download automatically, you can also just copy the conan.cmake file if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake") message( STATUS …
WBurzynski
  • 21
  • 3
0
votes
0 answers

Is there a way to download and install a private conan package locally?

I want to use conan to download and build some libraries in a specific folder. The idea is that everything included in the export_sources field must be downloaded in a given folder from which I run the conan install command, and not in…
0
votes
1 answer

Unable to set up SDL2 to run with audio (alsa) on linux ubuntu 20.04 using conan

Depending on what I do I either get "No such audio device" if I leave determining my audio device up to SDL2 or I get Failed loading libasound.a:…
Johannes
  • 6,490
  • 10
  • 59
  • 108
0
votes
1 answer

Getting uWebSockets for Visual 2017 via Conan

I'm trying to add uWebSockets as a dependency in my conan.txt conan install .. returns the following error: ERROR: uwebsockets/18.3.0: Invalid configuration: uwebsockets requires a compiler that supports at least C++17 How can I handle this ? The…
Calvin1602
  • 9,413
  • 2
  • 44
  • 55