/mikudos-service-cpp

mikudos-service-cpp

Primary LanguageC++MIT LicenseMIT

Mikudos Service

mikudos-service-c++

mikudos-service-c++

Satisfy the precondition

You need to install some software and dependencies for your software building.

Build with Makefile

please install protobuf and grpc with grpc_cpp_plugin for generate code with the Makefile

Build with CMake

If you want to use CMake to generate your Makefile for your project. please use cmake to install the protobuf package and the grpc package. You can follow the steps:

  1. clone the gRPC package from GitHub git clone https://github.com/grpc/grpc.git && cd grpc
  2. update all the submodule for gRPC package git submodule update --init --recursive
  3. Build Protobuf using CMake cd third_party/protobuf && mkdir build && cd build && cmake ../cmake/ && make && make install
  4. Build gRPC
    • cd to gRPC directory cd ....
    • mkdir build && cd build
    • Config your gRPC as a submodule and use CMake to generate Makefile to build your own gRPC package cmake .. (default gRPC use the boringssl as ssl module, I got error wenn i use openssl instead of the default. so just use the default =;) )
    • make && make install
  5. Congratulations! you can use CMake to build your project now!

Build with cmake

  • make a directory for your build mkdir build
  • generate build files with cmake cmake ..
  • build make