我正在尝试交叉编译Python 3.7.3以在Android上运行。在更新NDK以删除gcc之前,我一直在构建Python 3.5.1,而在git项目中没有任何问题。 https://github.com/GRRedWings/python3-android/tree/clang
可在https://github.com/GRRedWings/python3-android/blob/clang/mk/python/3.7.3/build.sh处找到Python构建食谱,其中许多导出已在根目录的env中设置,并且在mk目录中设置了build_single.sh。
试图将其更新到最新的NDK,并遇到问题,我无法获得旧版本Python的任何支持。我希望了解交叉编译和配置脚本的人能够为我指明正确的方向。
这是我调用configure时的输出
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `.'
OUR TARGET IS aarch64-linux-android
configure: loading site script ./config.site
checking build system type... x86_64-pc-linux-gnu
checking host system type... aarch64-unknown-linux-android
checking for python3.7... no
checking for python3... python3
checking for python interpreter for cross build... configure: error: python3.7 interpreter not found
Makefile:34: recipe for target 'python-3.7.3' failed
make: *** [python-3.7.3] Error 1
所以我的问题是,我应该重点关注什么以及在哪里。我是否应该查看配置错误,提示未找到python3.7解释器?我应该浏览config.log吗?我在那里看到的唯一错误是关于解释器的。