gpt4 book ai didi

android - 用于 kivy 的 buildozer,返回错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:37:02 26 4
gpt4 key购买 nike

我是第一次使用 Linux。我只是按照说明如何通过 buildozer git hub 制作移动应用程序。

最后,当我尝试时,我明白了:

[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI
[INFO]: Available Android APIs are (19)
[INFO]: Requested API target 19 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK
[INFO]: Got NDK version from $ANDROIDNDKVER
[INFO]: Using Google NDK r9c
[INFO]: Found virtualenv at /usr/local/bin/virtualenv
[INFO]: ccache is missing, the build will not be optimized in the future.
[WARNING]: Could not find toolchain subdirectory!
[WARNING]: Could not find any toolchain for arm-linux-androideabi!
[WARNING]: Missing executable: autoconf is not installed
[WARNING]: Missing executable: automake is not installed
[WARNING]: Missing executable: libtoolize is not installed
[ERROR]: python-for-android cannot continue; aborting
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3crystacks,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/kivy/buildozer/something/crystax-ndk-10.3.2/.buildozer/android/platform/build
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
kivy@kivyvm:~/buildozer/something/crystax-ndk-10.3.2$

不知道它会是什么。

我做了以下事情:

git clone https://github.com/kivy/buildozer
cd buildozer
python setup.py build
sudo pip install -e .

在 buildozer 中我创建了一个文件夹 something。

在我提取的 Crystax NDK 中

在我做的事情中 buildozer init

最后我做了 buildozer android debug deploy run

最佳答案

除了用 pip 安装 buildozer you should also install这是 linux 依赖项。

如果您想使用特定的 NDK,您应该编辑您的 buildozer.spec 文件,该文件在您运行 buildozer init 后出现在您的项目文件夹中。

请看this short manual : 它包含您应该在 buildozer.spec 中更改以使用 Crystax 和 Python 3 的行。

关于android - 用于 kivy 的 buildozer,返回错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47761430/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com