mirror of https://github.com/grpc/grpc-java.git
COMPILING.md: Reduce dependencies when building protobuf
These changes avoid a dependency on automake, autoconf, and libtool. The ./configure script is only available via the release artifacts, not git. For example, on Debian Buster only curl and build-essential need to be installed.
This commit is contained in:
parent
31b1da5a8d
commit
a462a3bc8e
11
COMPILING.md
11
COMPILING.md
|
|
@ -42,13 +42,12 @@ The codegen plugin is C++ code and requires protobuf 3.0.0 or later.
|
||||||
|
|
||||||
For Linux, Mac and MinGW:
|
For Linux, Mac and MinGW:
|
||||||
```
|
```
|
||||||
$ git clone https://github.com/google/protobuf.git
|
$ PROTOBUF_VERSION=3.9.0
|
||||||
$ cd protobuf
|
$ curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION/protobuf-all-$PROTOBUF_VERSION.tar.gz
|
||||||
$ git checkout v3.9.0
|
$ tar xzf protobuf-all-$PROTOBUF_VERSION.tar.gz
|
||||||
$ ./autogen.sh
|
$ cd protobuf-$PROTOBUF_VERSION
|
||||||
$ ./configure --disable-shared
|
$ ./configure --disable-shared
|
||||||
$ make
|
$ make # You may want to pass -j to make this run faster; see make --help
|
||||||
$ make check
|
|
||||||
$ sudo make install
|
$ sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue