System version: Mac OS X 10
This article briefly describes the compilation process of the Grpc-java, adding two packages to the installation dependencies in the official documentation steps.
Build
# Download Source codegit clone https://github.com/grpc/grpc-java.gitCD Grpc-java# Install MVNBrew Install Maven# Build Nettygit submodule update--initcd lib/nettymvn install-pl codec-http2-am-dskiptests=true# Build Protobufgit clone https://github.com/google/protobuf.gitCD Protobufgit Checkout alpha-2-X # Branch is not as the doc# Install AutomakeBrew Install Automake# Install LibtoolBrew Install Libtool./autogen.sh./configuremakemake Checksudo make install# Export System var in MacExport cxxflags="-i/usr/local/include"ldflags="-l/usr/local/lib"# Build Grpc./gradlew Install
Reference: Homebrew Tools
Complete the full text:)
Grpc-java MacOS Compilation