From 8d6f503e040c783fe1830498d8aa6c84dd2ceba1 Mon Sep 17 00:00:00 2001 From: Colin Edwards Date: Wed, 13 Dec 2023 12:01:30 -0600 Subject: [PATCH] android: require NDK r26b This fixes `no member named 'invocable' in namespace 'std'` --- android/build.py | 6 +++++- doc/user.rst | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/android/build.py b/android/build.py index d7a97f23a..32507b427 100755 --- a/android/build.py +++ b/android/build.py @@ -1,6 +1,7 @@ #!/usr/bin/env -S python3 -u import os, os.path +import shutil import sys, subprocess if len(sys.argv) < 4: @@ -60,8 +61,11 @@ configure_args += [ '-Dandroid_ndk=' + ndk_path, '-Dandroid_abi=' + android_abi, '-Dandroid_strip=' + toolchain.strip, + '-Dopenssl:asm=disabled' ] from build.meson import configure as run_meson run_meson(toolchain, mpd_path, '.', configure_args) -subprocess.check_call(['/usr/bin/ninja'], env=toolchain.env) + +ninja = shutil.which("ninja") +subprocess.check_call([ninja], env=toolchain.env) diff --git a/doc/user.rst b/doc/user.rst index 1a7858c22..273b57452 100644 --- a/doc/user.rst +++ b/doc/user.rst @@ -197,7 +197,7 @@ Compiling for Android You need: * Android SDK (sdk platform 29, build tools 29.0.3) -* `Android NDK r25b `_ +* `Android NDK r26b `_ * `Meson 0.56.0 `__ and `Ninja `__ * cmake @@ -207,6 +207,7 @@ You need: * zip * libtool * rsvg-convert +* python 3.9+ Just like with the native build, unpack the :program:`MPD` source tarball and change into the directory. Then, instead of