Skip to content

Commit 12751bc

Browse files
doc: use NDK r21b for building
Updates the documentation to use NDK r21b for building, matching the NDK version used to build the currently released binaries.
1 parent 5cea85f commit 12751bc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ sudo apt-get install -y build-essential git python
4444
sudo apt-get install -y curl unzip
4545
```
4646

47-
#### Install Android NDK r21 for Linux:
47+
#### Install Android NDK r21b for Linux:
4848
Choose a location where you want to install the Android NDK and run:
4949
```sh
50-
curl https://dl.google.com/android/repository/android-ndk-r21-linux-x86_64.zip -o ndk.zip
50+
curl https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip -o ndk.zip
5151
unzip ndk.zip
5252
```
53-
It will create a `android-ndk-r21` folder. Save that path for later.
53+
It will create a `android-ndk-r21b` folder. Save that path for later.
5454

5555
### Prerequisites to build the Android library on macOS:
5656

@@ -62,13 +62,13 @@ As an alternative, installing one of these will install `git`:
6262
* [Homebrew](https://brew.sh/)
6363
* [Git-SCM](https://git-scm.com/download/mac)
6464

65-
#### Install Android NDK r21 for macOS:
65+
#### Install Android NDK r21b for macOS:
6666
Choose a location where you want to install the Android NDK and run:
6767
```sh
68-
curl https://dl.google.com/android/repository/android-ndk-r21-darwin-x86_64.zip -o ndk.zip
68+
curl https://dl.google.com/android/repository/android-ndk-r21b-darwin-x86_64.zip -o ndk.zip
6969
unzip ndk.zip
7070
```
71-
It will create a `android-ndk-r21` folder. Save that path for later.
71+
It will create a `android-ndk-r21b` folder. Save that path for later.
7272

7373
### Building the Android library on Linux or macOS:
7474

@@ -82,11 +82,11 @@ git checkout mobile-master
8282

8383
#### 2a) Using the Android helper script:
8484

85-
The `tools/android_build.sh` script takes as first argument the Android NDK path (in our case is `~/android-ndk-r21`). The second argument is optional and is the target architecture, which can be one of the following: `arm`, `x86`, `arm64` or `x86_64`. If no target architecture is provided, it will build all available architectures.
85+
The `tools/android_build.sh` script takes as first argument the Android NDK path (in our case is `~/android-ndk-r21b`). The second argument is optional and is the target architecture, which can be one of the following: `arm`, `x86`, `arm64` or `x86_64`. If no target architecture is provided, it will build all available architectures.
8686
Run:
8787

8888
```sh
89-
./tools/android_build.sh ~/android-ndk-r21
89+
./tools/android_build.sh ~/android-ndk-r21b
9090
```
9191

9292
When done, each built shared library will be placed in `out_android/$(ARCHITECTURE)/libnode.so`.
@@ -95,7 +95,7 @@ When done, each built shared library will be placed in `out_android/$(ARCHITECTU
9595
Run the `android-configure` script to configure the build with the path to the downloaded NDK and the desired target architecture.
9696

9797
```sh
98-
source ./android-configure ../android-ndk-r21 arm
98+
source ./android-configure ../android-ndk-r21b arm
9999
```
100100

101101
Start the build phase:

0 commit comments

Comments
 (0)