Need help with grpc-cmake-example?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

IvanSafonov
137 Stars 43 Forks MIT License 10 Commits 1 Opened issues

Description

gRPC C++ example with CMake

Services available

!
?

Need anything else?

Contributors list

# 209,390
golang
codegen
c-plus-...
gRPC
10 commits

Tested on Ubuntu 18.04 LTS

How to build

  • Install Protocol Buffers and gRPC ```bash # On ubuntu 18.04 sudo apt-get install build-essential autoconf libtool pkg-config automake curl

git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc cd grpc git submodule update --init

# Build and install protobuf cd ./third_party/protobuf ./autogen.sh ./configure --prefix=/opt/protobuf make -j

nproc
sudo make install

# Build and install gRPC cd ../.. make -j

nproc
PROTOC=/opt/protobuf/bin/protoc sudo make prefix=/opt/grpc install
* Change CMAKE_PREFIX_PATH variable in CMakeFiles.txt[7] according to your install prefixes
* And build it
```bash
  mkdir build
  cd build
  cmake ..
  make

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.