mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +08:00
863b329ccd
Seen when someone has to relaunch `ci_build.sh` manually, for troubleshooting, or experiment(s), ci_build.sh stops as libraries are already built. Solution: Clean more temporary/build folders before build. Note: To be reported in ZYRE/CZMQ via ZProject. When called from ZYRE/CZMQ, it's difficult to identify which build script is being executed Solution: Modify each `echo` trace to show the project name and Android architecture in progress. Note: To be reported in ZYRE/CZMQ via ZProject.
Android Build
Prerequisites
You need the Android Native Development Kit (NDK) installed. See here to download it.
This project is tested against Android NDK version r25.
If you installed version r25 all you have to do is to expose the NDK root directory as environment variable, e.g:
export ANDROID_NDK_ROOT=$HOME/android-ndk-r25
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
To specify the prefix directory set the environment variable below:
export ANDROID_BUILD_DIR=./builds/android/prefix/<android_arch> # Default value if unset
Build
In the android directory, run:
./build.sh [ arm | arm64 | x86 | x86_64 ]