Benjamin Deroche
1f1e8145d0
Problem: Default Android NDK version is not aligned with zproject
...
Solution: Set NDK r25 as the default. No compatiblity changes required.
2022-09-26 14:47:05 +02:00
Stephan Guilloux (cos)
a7774e38e6
Problem: builds/android/build.sh fails with CURVE=libsodium
...
How to reproduce:
```
prompt> git clone libzmq
prompt> cd libzmq/builds/android
prompt> export CURVE=libsodium
prompt> ./ci_build.sh
Cloning into 'libsodium'...
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Connection timed out
Cloning into 'libsodium'...
fatal: unable to connect to github.com:
github.com[0: 140.82.121.3]: errno=Connection timed out
Cloning into 'libsodium'...
fatal: unable to connect to github.com:
github.com[0: 140.82.121.3]: errno=Connection timed out
Cloning into 'libsodium'...
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Connection timed out
prompt>
```
Reason: Invalid URL to download libsodium:
```
prompt> grep -s 'git clone' libzmq/builds/android/*.sh
libzmq/builds/android/build.sh:70: (cd "${cache}" && git clone -b stable --depth 1 git://github.com/jedisct1/libsod
^^^^^^^^^^^^^^^^^
```
URL should be either:
- `git@github.com:`
- `https://github.com/ ` same given in [zproject](https://github.com/zeromq/zproject/blob/master/zproject_known_projects.xml#L108-L111 ).
Solution: Change URL to `https://`.
Result:
```
prompt> export CURVE=libsodium
prompt> ./ci_build.sh
Cloning into 'libsodium'...
remote: Enumerating objects: 659, done.
remote: Counting objects: 100% (659/659), done.
remote: Compressing objects: 100% (586/586), done.
remote: Total 659 (delta 159), reused 220 (delta 34), pack-reused 0
Receiving objects: 100% (659/659), 1.97 MiB | 4.00 MiB/s, done.
Resolving deltas: 100% (159/159), done.
autoconf scripts already exist.
...
libtool: install: /bin/install -c tools/.libs/curve_keygen /home/cbox_dev/git/ZEROMQ/libzmq/builds/android/prefix/x86_64/bin/curve_keygen
/bin/mkdir -p '/home/cbox_dev/git/ZEROMQ/libzmq/builds/android/prefix/x86_64/include'
/bin/install -c -m 644 include/zmq.h include/zmq_utils.h '/home/cbox_dev/git/ZEROMQ/libzmq/builds/android/prefix/x86_64/include'
/bin/mkdir -p '/home/cbox_dev/git/ZEROMQ/libzmq/builds/android/prefix/x86_64/lib/pkgconfig'
/bin/install -c -m 644 src/libzmq.pc '/home/cbox_dev/git/ZEROMQ/libzmq/builds/android/prefix/x86_64/lib/pkgconfig'
make[2]: Leaving directory `/tmp/android_build/x86_64/libzmq'
make[1]: Leaving directory `/tmp/android_build/x86_64/libzmq'
libzmq android build succeeded
prompt>
```
2022-09-22 00:43:57 +02:00
Benjamin Deroche
5f6f708f29
Revert "Problem: Libs crash at runtime on Android when built with NDK 23+"
...
This reverts commit 9c6f09cbe551e08782b67fae367b56dc69f656f7.
2022-05-11 17:25:46 +02:00
Benjamin Deroche
9c6f09cbe5
Problem: Libs crash at runtime on Android when built with NDK 23+
...
Solution: Fix the recently updated scripts
2022-05-10 15:21:06 +02:00
Benjamin Deroche
a49a4d0997
Problem: Accidentaly deleted a comment when updating Android build scripts
...
Solution: Restore it
2022-05-09 16:18:02 +02:00
Benjamin Deroche
d1ee71a634
Problem: Android build scripts does not work with latest NDK versions
...
Solution: Update the build scripts to work with NDK versions r23 and r24
2022-05-09 12:15:49 +02:00
Dimitris Apostolou
6b8dd84a63
Fix typos
2022-02-11 00:45:06 +02:00
Benjamin Deroche
519e2bf129
Problem: Android build script isn't compatible with latest NDK version ( #4278 )
...
* Problem: Android build script isn't compatible with latest NDK version
Solution: Update to Android NDK r22b
2021-10-18 10:05:10 +01:00
Benjamin Deroche
2af72796a7
Problem: Outdated Android build tools
...
Solution: Update Android NDK version
2021-06-07 11:34:13 +02:00
Sailaja Nagireddy
89a536dd1d
Problem: Android build fails.
...
Solution: Update the android build helper to locate readelf binary
included in android ndk.
2020-12-04 20:56:50 +05:30
Benjamin Deroche
83667099bb
Problem: libzmq use outdated Android NDK version
...
Solution: Update Android NDK version
2020-08-14 16:49:14 +02:00
Kevin Sapper
67e6a8c233
Problem: Usage of ANDROID_BUILD_DIR not documented
...
Solution: Add usage and default value to README
2020-02-12 21:49:25 +01:00
Kevin Sapper
e293b0b9b3
Problem: Setting TOOLCHAIN env vars should be done by helper
...
Solution: Migrate the properties and the selection for the correct env
and abi to the helper. There's no need for the user to specify them.
2020-02-12 21:36:41 +01:00
Kevin Sapper
511d39c179
Problem: Unable to overwrite the ANDROID_BUILD_DIR
...
Solution: Use pwd only a default value
2020-02-12 16:20:27 +01:00
Kevin Sapper
341f56ccac
Problem: Android build is hard to understand
...
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.
2020-02-12 12:22:27 +01:00
Benjamin Deroche
c995032595
Fix android build fail check when using a different locale than english
2019-10-28 16:48:54 +01:00
Benjamin Deroche
0d0899bc0d
Download the NDK only the first time
2019-10-28 16:48:54 +01:00
Benjamin Deroche
7ee36a177a
Make sure the new file erase the old one and don't get a different name
2019-10-28 16:03:22 +01:00
Benjamin Deroche
947893e79f
Keep the unzip quiet but make sure it doesn't fail silently
2019-10-28 16:02:57 +01:00
Benjamin Deroche
d2099b7593
Problem: Android build script is severely outdated
...
Solution: Migrate build scripts from Android NDK r11c to r20.
- Standalone toolchain
- Migration from GCC to Clang
- Migration from libgnustl to libc++
- Dropped support for API level below 16 (Android 4.1), previously it was API level 9 (Android 2.3)
- Dropped support for mips architecture
- The build script now start the build of all 4 Android architectures (arm, arm64, x86, x86_64)
2019-10-25 23:07:04 +02:00
Luca Boccassi
7f34ca52c8
Problem: Android helper does not redirect pkg-config
...
Solution: set the appropriate options, environment variables and paths
so that the host pkg-config files are ignored, and the target ones are
used instead (if any)
2018-12-17 13:58:04 +00:00
Luca Boccassi
5210fa4e8d
Merge pull request #3066 from AxelNennker/patch-3
...
Update android_build_helper.sh
2018-04-29 17:19:08 +01:00
Axel Nennker
1d25658332
Update android_build_helper.sh
...
Minimum platform for arm is android-14
2018-04-29 17:56:16 +02:00
Axel Nennker
d36c1ca5e0
Update README.md
...
added missing = to export VARIABLE=VALUE
2018-04-29 17:52:31 +02:00
Axel Nennker
990268e1db
use HTTPS when downloading a binary before excuting it check hashes
...
Changed the download URL to use HTTPS.
Provided the hashes for version r10e
Replaces /home/zmq by $HOME
2018-04-29 17:18:38 +02:00
Luca Boccassi
b4abaad269
Problem: Android CI uses outdated C++ ABI 4.8
...
Solution: switch to 4.9
2016-06-07 23:56:34 +01:00
Luca Boccassi
b872e7d9f7
Problem: Android CI NDK version out of date
...
Solution: update CI scripts to use newer r11c from r10e
2016-06-07 23:56:28 +01:00
Luca Boccassi
8be568916e
Problem: Android CI script hardcodes ABI version
...
Solution: use a variable for easier maintenance, in sync with zproject
2016-06-07 23:18:21 +01:00
Benjamin Henrion
516efa46c0
add some doc for docker android compilation
2016-03-18 13:54:20 +01:00
Luca Boccassi
9393f06381
Problem: CI use of sodium or nacl is confusing
...
Solution: establish a matrix of CI options. On one axis we have the
build system (autotools, cmake, android) and on the other axis we
have the encryption options (tweetnacl, libsodium or none).
2016-02-11 22:39:36 +00:00
Luca Boccassi
4f5594c2ce
Problem: Android CI build uses unstable libsodium
...
Solution: checkout stable branch before building
2016-02-11 20:25:21 +00:00
Pieter Hintjens
a3d9b46a60
Problem: Android build is slow and noisy
...
Solution: use --without-docs (changed from --without-documentation)
and also --quiet.
2016-02-04 11:24:25 +01:00
Pieter Hintjens
c49eef46ec
Problem: Android build is too slow
...
Solution: use parallel make (-j 4) and don't build man pages.
2016-01-05 17:31:17 +01:00
Constantin Rack
33c5985eb2
Problem: build scripts don't need full git history
...
Solution: add `--depth 1` parameter to `git clone` commands
2015-12-19 13:17:22 +01:00
Benjamin Henrion
8f1810d1e2
Add a Dockerfile to build libzmq for android
2015-12-17 00:11:26 +01:00
Pieter Hintjens
9b45ba7067
Problem: builds/qt-android name is inaccurate
...
Solution: rename to simple builds/android.
2015-12-14 19:01:13 +01:00