Git Product home page Git Product logo

conan-recipes's Introduction

Conan Packaging Recipes

This repository contains several Conan recipes. It was developed with the primary aim of packaging https://github.com/grpc/grpc but might grow in scope in the future.

Prerequisites

These recipes have been tested on Debian GNU/Linux "bullseye" (currently in testing phase) using the native GCC 9.3.0 toolchain and CMake 3.16.3 .

Conan 1.24.1 installed via pip3.

Building

$ cd ../protoc_installer
$ conan create . protobuf_compiler/3.11.4@signbit/testing
$ cd ../grpc_plugin
$ conan create . grpc_plugin/1.28.1@signbit/testing
$ cd ../grpc
$ conan create . grpc/1.28.1@signbit/testing

Feel free to substitute your own channel for "signbit/testing", just make sure you adapt the test recipes.

Testing

# grpc
$ cd ../
$ mkdir greeter_example.build
$ cd greeter_example.build
$ conan install ../greeter_example
$ cmake ../greeter_example
$ cmake --build .
$ ./greeter_server&
Server listening on 0.0.0.0:50051
$ ./greeter_client 
Greeter received: Hello world
# terminate the background process
$ fg
^C

License

These scripts have been heavily influenced by the original upstream sources:

As such, this work is licensed under the MIT license.

NOTE: The Conan recipe license applies only to the files of this recipe, which can be used to build the included packages. It does not in any way apply or is related to the actual software being packaged.

conan-recipes's People

Contributors

0x8000-0000 avatar flobraun avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

schnapper79

conan-recipes's Issues

abseil target has wrong name

When building the grpc_plugin and grpc packages I first got an error from CMake saying Target "xyz" links to target "CONAN_PKG::absl" but the target was not found.

After looking at the patches for both packages and the generated conanbuildinfo.cmake I noticed that conan was calling the target CONAN_PKG::abseil and not CONAN_PKG::absl. Changing the name of the target got both builds working for me.

Just for reference (because I don't know if it might be relevant):

  • System: Manjaro 20.1.2
  • GCC 10.2
  • CMake 3.18.3
  • Conan 1.30.2 (from AUR)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.