[issue29040] building Android with android-ndk-r14

Xavier de Gaye report at bugs.python.org
Wed Dec 21 15:24:25 EST 2016


New submission from Xavier de Gaye:

android-ndk-r14 introduces "Unified Headers" [1] and is planned to be released late january/early february 2017 [2].

__ANDROID_API__ is not anymore defined in 'android/api-level.h' that is currently included by Include/pyport.h, and is passed instead with -D__ANDROID_API__=$API when compiling. And 'android/api-level.h' is now used to set the API level to 10000 as a Magic version number for a current development build when __ANDROID_API__ is not defined (see attached file).

Adoption of android-ndk-r14 should be made with the following changes:
* Remove the include of <android/api-level.h> in Include/pyport.h.
* Update configure.ac to abort when __ANDROID__ is defined and __ANDROID_API__ is not defined.
* Revert the changes made in issues #28538 and #28762, android-ndk-r14 fixes the problems raised in these two issues.

[1] https://android.googlesource.com/platform/ndk.git/+/master/docs/UnifiedHeaders.md
[2] https://github.com/android-ndk/ndk/wiki

----------
components: Cross-Build
files: api-level.h
messages: 283778
nosy: Alex.Willmer, xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: building Android with android-ndk-r14
type: compile error
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45987/api-level.h

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29040>
_______________________________________


More information about the Python-bugs-list mailing list