conan

Read a file and extract data and assign to a variable from a python file

五迷三道 提交于 2020-12-13 17:52:27
问题 I am trying to extract BINPATH, LIBPATH,CPPPATH from a conan.txt file which looks like: conan = { "conan" : { "CPPPATH" : ['something'], "BINPATH" : ['something'], "LIBS" : ['something'], "CPPDEFINES" : [], "CXXFLAGS" : [], "CCFLAGS" : [], "SHLINKFLAGS" : [], "LINKFLAGS" : [], }, "conan_version" : "None", "boost" : { "CPPPATH" : ['C:\\.conan\\123456\\1\\include'], "LIBPATH" : ['C:\\.conan\\123456\\1\\lib'], "BINPATH" : ['C:\\.conan\\123456\\1\\lib'], "LIBS" : [], "CPPDEFINES" : [], "CXXFLAGS"

Read a file and extract data and assign to a variable from a python file

不想你离开。 提交于 2020-12-13 17:51:11
问题 I am trying to extract BINPATH, LIBPATH,CPPPATH from a conan.txt file which looks like: conan = { "conan" : { "CPPPATH" : ['something'], "BINPATH" : ['something'], "LIBS" : ['something'], "CPPDEFINES" : [], "CXXFLAGS" : [], "CCFLAGS" : [], "SHLINKFLAGS" : [], "LINKFLAGS" : [], }, "conan_version" : "None", "boost" : { "CPPPATH" : ['C:\\.conan\\123456\\1\\include'], "LIBPATH" : ['C:\\.conan\\123456\\1\\lib'], "BINPATH" : ['C:\\.conan\\123456\\1\\lib'], "LIBS" : [], "CPPDEFINES" : [], "CXXFLAGS"

Installing gtest with conan

一世执手 提交于 2020-12-13 03:54:48
问题 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.8.1@bincrafters/stable: Package installed conanfile.txt imports(): Copied 4 '.a' files: libgmockd.a, libgtestd.a, libgmock_maind.a, libgtest_maind.a However, during build I receive: /usr/bin/ld: cannot find -lgmock_maind /usr/bin/ld: cannot find -lgmockd /usr/bin/ld: cannot find -lgtestd My

Undefined reference using external library with CMake and Conan

喜你入骨 提交于 2020-07-09 11:51:08
问题 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 which seemed to have gone fine. I created a small simple console project with a "main.cpp" file. Following the C++ guide on the wiki of the library I tried to call a function from the library which resulted in a "Undefined reference to function . I know there are a lot of topics covering this but I

Using Conan to install packages directly from GitHub

送分小仙女□ 提交于 2020-06-17 09:43:53
问题 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 OpenCL ICD Loader I tried searching them on the command line with conan search <packageName> using different queries with no avail. I'm not sure how Conan package manager works. With HomeBrew one could tap different repositories or with pip directly install from a GitHub repository. I would appreciate

Dependency management using Conan with a CMake project under VS2017

送分小仙女□ 提交于 2020-06-12 15:38:37
问题 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 software and I'm wondering what's the best way to have VS2017 to recognize the dependencies of the project. For example, I've used Conan to install the POCO library for C++ but when I open the Main.cpp file it doesn't recognise the header files location and I'm not really sure where to add those

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

戏子无情 提交于 2020-05-17 08:52:05
问题 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 zlib/1.2.11@conan/stable conflicts with already defined zlib/1.2.11 To change it, override it in your base requirements My conanfile.txt: [requires] boost/1.69.0@conan/stable sfml/[>=2.5.0]@bincrafters/stable [options] sfml:window=True sfml:graphics=True sfml:audio=True sfml:network=True sfml:shared

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

你离开我真会死。 提交于 2020-01-25 00:25:11
问题 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++ ) target_link_libraries(${PROJECT_NAME} PUBLIC ${LIB_DEPS}) When I generate a VS project from this CMakeLists.txt in Linker - Input - Addition Dependencies property, I have there next value: C:\.conan\data\protobuf\3.9.1\kpa_conan\stable\package\b786e9ece960c3a76378ca4d5b0d0e922f4cedc1\lib\libprotobufd.lib <--