libzmq/builds/android
Stephan Guilloux (cos) 3022e7e099 Regression: Android build fails with libsodium.
Scenario:
```
export CURL=libsodium
cd zyre/builds/android
./ci_build.sh
```

Result:
```
Android (arm) build failed for the following reasons:
  Found no library named libzmq.so libsodium.so
    /home/stephan/git/zproject-android-testing/libzmq/builds/android/prefix/arm/lib/libzmq.so libsodium.so
```

Caused by PR #4437, where the 2nd commit was to fix Sonatype findings.

Lesson learnt: Not always a good idea to add double quotes around variables ...

Solution: Make VERIFY an array, so that Sonatype won't complain.
2022-10-12 02:43:10 +02:00
..
android_build_helper.sh Problem: Android APP fails to load ZMQ since NDK r25.x (#4437) 2022-10-11 21:40:13 +01:00
build.sh Regression: Android build fails with libsodium. 2022-10-12 02:43:10 +02:00
ci_build.sh Problem: Android CI build scripts need minor enhancements (traces & cleanup). 2022-10-11 23:08:08 +02:00
Dockerfile Problem: build scripts don't need full git history 2015-12-19 13:17:22 +01:00
README.md Problem: Default Android NDK version is not aligned with zproject 2022-09-26 14:47:05 +02:00

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 ]