mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-13 01:31:20 +00:00
Solution: Modify the build scripts so the user can specify the platform for which to build, e.g. `./build.sh arm`. This approach originally significantly reduces the parameters which have to be set before running the script. Further the build process is documented in a README now.
30 lines
801 B
Markdown
30 lines
801 B
Markdown
# Android Build
|
|
|
|
## Prerequisites
|
|
|
|
You need the Android Native Development Kit (NDK) installed. See
|
|
[here](https://developer.android.com/ndk) to download it.
|
|
|
|
This project is tested against Android NDK version r20.
|
|
|
|
If you installed version r20 all you have to do is to expose the NDK root
|
|
directory as environment variable, e.g:
|
|
|
|
export ANDROID_NDK_ROOT=$HOME/android-ndk-r20
|
|
|
|
If you installed another version you have to expose the NDK root directory as
|
|
well as the NDK version, e.g:
|
|
|
|
export ANDROID_NDK_ROOT=$HOME/android-ndk-r17c
|
|
export NDK_VERSION=android-ndk-r17c
|
|
|
|
To specify the minimum sdk version set the environment variable below:
|
|
|
|
export MIN_SDK_VERSION=21 # Default value if unset
|
|
|
|
## Build
|
|
|
|
In the android directory, run:
|
|
|
|
./build.sh [ arm | arm64 | x86 | x86_64 ]
|