Git Product home page Git Product logo

zserio-service-grpc-cpp's Introduction

Zserio Service gRPC backend


Sample implementation of Zserio Service gRPC backend in C++.

Prerequisites

Install gRPC and protobuf according to the official instructions: https://github.com/grpc/grpc/blob/master/BUILDING.md.

Note that this sample use CMake and therefore it is necessary to install gRPC using CMake, otherwise CMake's find_package(gRPC) will not be available.

Since gRPC official instructions do not support properly older gRPC version using older CMake < 3.13, you can check our doc/BUILD_gRPC.md.

Note that Zserio prerequisites are automatically downloaded by CMake.

Building

Make sure that PREFIX_PATH is set correctly to gRPC installation. For example, if doc/BUILD_gRPC.md has been used, set the following:

PREFIX_PATH="/opt/tools/gRPC/lib/cmake;/opt/tools/protobuf/lib/cmake"
PREFIX_PATH+=";/opt/tools/cares/lib/cmake;/opt/tools/abseil/lib/cmake"

Go to the ZserioServiceGrpc root directory.

Build ZserioServiceGrpc library:

mkdir build
pushd build
cmake -DCMAKE_PREFIX_PATH="${PREFIX_PATH}" ../src
cmake --build .
popd

Note that for MSVC compiler, you might need to specify configuration by cmake --build . --config Release or cmake --build . --config Debug.

Usage

See Calculator Example.

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.