Questions tagged [conan-2]

12 questions
1
vote
0 answers

PulseAudio error in build methode with conan

I have conan 2.0.9 here is all the other information Profile…
EtienneBfx
  • 111
  • 5
1
vote
1 answer

CMake can not find POCO when installed with Conan

I downloaded the last version of Conan from here and then I've done the following. Creating a new c++ project with the following code main.cpp #include "Poco/MD5Engine.h" #include "Poco/DigestStream.h" #include int main(int argc,…
Mircea
  • 1,671
  • 7
  • 25
  • 41
1
vote
0 answers

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 the gTest dependency works fine with: conan…
evolved
  • 1,850
  • 19
  • 40
1
vote
0 answers

How to set linker flags with conan 2.0 with correct escaping

I'm using conan 2.0 to create a recipe to publish a Apple Framework written in C++. Everything is working and the information I need to provided in package_info for the consumer of the Apple Framework is as expected. Only problem I have is with…
ByteNudger
  • 1,545
  • 5
  • 29
  • 37
0
votes
0 answers

Create a conan package from a reference folders as source

I am trying to create a conan package from a third party library(boost). I am not trying to build the entire boost here, rather just package the header files as only those are used in most of our projects. Hence I want to package the boost directly…
0
votes
1 answer

cmake + conan 2.0 + boost with default cmake_exe template not properly injecting dependencies in generated files

PS C:\Dev\test> conan --version Conan version 2.0.9 PS C:\Dev\test> cmake --version cmake version 3.27.1 I am trying to make a boost-cmake-conan 2.0 hello world using the default cmake_exe template. In an empty folder conan new cmake_exe -d…
pandaman1234
  • 523
  • 7
  • 17
0
votes
0 answers

Cmake cannot not find include/lib directories generated by Conan

I am trying to define both a recipe file and a test_package for NATS 3rd party library. Here is the folder structure which I have: nats |--conanfile.py |--test_package |--CMakeLists.txt |--conanfile.py |--test.cpp After running…
David Hovsepyan
  • 509
  • 1
  • 3
  • 18
0
votes
1 answer

How to set error_on_override in conan 2.0

Was the error_on_override setting removed in conan 2.0 because I couldn't find a conan.conf and also nothing about it in the documentation for conan 2.0. Is there a new way to disable/enable it?
evolved
  • 1,850
  • 19
  • 40
0
votes
0 answers

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 required in the program's cmake file). Where is it…
Gabriele
  • 1
  • 1
0
votes
0 answers

SSL: CERTIFICATE_VERIFY_FAILED using Conan 2.0.4 and Python 3.9.13

I'm getting the following error when trying to download a file from github to compile from source using Conan 2.0.4: Error from Terminal ERROR: gtest/1.10.0: Error in source() method, line 104 get(self, **self.conan_data["sources"][self.version],…
0
votes
1 answer

Conan 2.0 use CMake Toolchain generator without CMakeDeps

I'm looking at migrating to conan 2.0 and using the newer generator CMakeToolChain without CMakeDeps so the CMake config files I've already created are used. Seems like it should be doable even though I know (for at least conan.io), it's actively…
schrödinbug
  • 692
  • 9
  • 19
0
votes
1 answer

How do I replace imports when migrating from a Conan 1.x conanfile.txt to a Conan 2.0 conanfile.py?

I'm trying to get imgui working with OpenGL, using Conan to manage my dependencies. Imgui has backends which are used to hook into whatever rendering solution you're using. The link below describes how to make those available to your project using…
Chris
  • 76
  • 6