Category : conan

I am requesting all your help and/or advise on a strange issue I am encountering trying to understand Conan. First thing first, the error : A well-known : /bin/ld: cannot find -lnlohmann_json_schema_validator What I am trying to do : Trying to build the main example of the json-schema-validator, based on nlohmann_json, using cmake and conan ..

Read more

I’m trying to create a header only package with conan which is based on CMake and CTest. It’s as empty as possible and just contains two tests with empty main() functions. While conan create . conantest/stable works fine on linux it stop with the error conantest/[email protected]/stable: ERROR: Package ‘…’ build failed conantest/[email protected]/stable: WARN: Build folder ..

Read more

So I’m trying to get my cmake to work with conan/boost. For this I have a simple conan file: from conans import ConanFile class Boost_Conan_Cmake_MinimalConfig(ConanFile): name = "Boost_Conan_Cmake_MinimalConfig" generators = "cmake" options = {"shared": [True, False], "st": [True, False]} default_options = {"shared": False, "st": True} def requirements(self): self.requires("boost/[email protected]_/_") self.options["boost"].shared = False I call this via ..

Read more

I’m trying to generate grpc cpp files but the generator plugin fails when I call it in cmake find_package(protoc CONFIG REQUIRED) find_package(gRPC CONFIG REQUIRED) get_target_property(grpc_cpp_plugin_location gRPC::grpc_cpp_plugin LOCATION) #get plugin location get_target_property(protoc_location protobuf::protoc LOCATION) #for sanity check message("protoc is at ${protoc_location}") #for sanity check message("grpc plugin is at ${grpc_cpp_plugin_location}") #for sanity check add_library(${PRO_NAME} ${PRO_SRCS} test.proto) protobuf_generate(TARGET ..

Read more