【发布时间】:2022-11-01 21:31:18
【问题描述】:
我正在尝试构建一个在 buildozer.spec 中有这些要求的 kivy 应用程序:
requirements = python3,kivy,pillow,plyer,scipy,numpy
所有 Android(SDK/NDK,API)设置都是默认的(注释)
一次不指定 NDK 的运行会给出:
[INFO]: <- directory context /home/joachim/PycharmProjects/CardReader/.buildozer/android/platform/python-for-android
[WARNING]: install_libs called with no libraries to install!
[INFO]: Building lapack for arm64-v8a
[INFO]: -> directory context /home/joachim/PycharmProjects/CardReader/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lapack/arm64-v8a__ndk_target_21/lapack/build
[ERROR]: Build failed: Please set the environment variable 'LEGACY_NDK' to point to a NDK location with gcc/gfortran support (supported NDK version: 'r21e')
当我清理然后将 NDK 设置为 21e 并再次运行时,我得到另一个错误:
[INFO]: Will compile for the following archs: arm64-v8a, armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI: 27
[INFO]: Available Android APIs are (27)
[INFO]: Requested API target 27 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK: /home/joachim/.buildozer/android/platform/android-ndk-r21e
[INFO]: Found NDK version 21e
[ERROR]: Build failed: The minimum supported NDK version is 23. You can download it from https://developer.android.com/ndk/downloads/.
[INFO]: Instructions: Please, go to the android NDK page (https://developer.android.com/ndk/downloads/) and download a supported version.
*** The currently recommended NDK version is 23b ***
如何解决这种不匹配?寻找支持 gcc/gfortran 的 NDK。或者,需要为 LEGACY_NDK 设置什么?
【问题讨论】:
标签: android-ndk kivy buildozer python-for-android