Skip to content

Commit

Permalink
sync proto version in document
Browse files Browse the repository at this point in the history
  • Loading branch information
Qizhen-Xue committed Dec 4, 2023
1 parent 166a06f commit 5edff67
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions doc/build/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ You can also use another distribution (e.g. [Pyenv](https://github.com/pyenv/pye
[Google Protocol Buffer](https://github.com/google/protobuf) compiler is also required to create NNabla's neural network format serializer/desrializer in Python or C++.

```shell
curl -L https://github.com/google/protobuf/releases/download/v3.19.6/protoc-3.19.6-linux-x86_64.zip -o /tmp/protoc-3.19.6-linux-x86_64.zip
sudo unzip -d /usr/local /tmp/protoc-3.19.6-linux-x86_64.zip && sudo chmod 755 /usr/local/bin/protoc
curl -L https://github.com/google/protobuf/releases/download/v3.20.3/protoc-3.20.3-linux-x86_64.zip -o /tmp/protoc-3.20.3-linux-x86_64.zip
sudo unzip -d /usr/local /tmp/protoc-3.20.3-linux-x86_64.zip && sudo chmod 755 /usr/local/bin/protoc
```

### Build and installation
Expand Down
8 changes: 4 additions & 4 deletions doc/build/build_android.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ Following build dependencies needs to be installed by the user manually.
Unlike [Python Package compilation](./build.md) which requires
`protoc` compiler only, the NNabla C++ utility library requires
protobuf C++ library too. The following snippet running on your
terminal will build and install protobuf-3.19.6 from source.
terminal will build and install protobuf-3.20.3 from source.

```shell
curl -L https://github.com/google/protobuf/archive/v3.19.6.tar.gz -o protobuf-v3.19.6.tar.gz
tar xvf protobuf-v3.19.6.tar.gz
cd protobuf-3.19.6
curl -L https://github.com/google/protobuf/archive/v3.20.3.tar.gz -o protobuf-v3.20.3.tar.gz
tar xvf protobuf-v3.20.3.tar.gz
cd protobuf-3.20.3
mkdir build build-android
cd build
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_CXX_STANDARD=14 ../cmake
Expand Down
8 changes: 4 additions & 4 deletions doc/build/build_cpp_utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ Note: You can choose one of the following two installing methods.
Unlike [Python Package compilation](./build.md) which requires
`protoc` compiler only, the NNabla C++ utility library requires
protobuf C++ library too. The following snippet running on your
terminal will build and install protobuf-3.1.0 from source.
terminal will build and install protobuf-3.20.3 from source.

```shell
curl -L https://github.com/google/protobuf/archive/v3.19.6.tar.gz -o protobuf-v3.19.6.tar.gz
tar xvf protobuf-v3.19.6.tar.gz
cd protobuf-3.19.6
curl -L https://github.com/google/protobuf/archive/v3.20.3.tar.gz -o protobuf-v3.20.3.tar.gz
tar xvf protobuf-v3.20.3.tar.gz
cd protobuf-3.20.3
mkdir build && cd build
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dprotobuf_BUILD_TESTS=OFF ../cmake
make
Expand Down

0 comments on commit 5edff67

Please sign in to comment.