buildozer for kivy,返回错误

时间:2017-12-11 21:07:26

标签: android linux android-ndk kivy buildozer

我是第一次使用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中我创建了一个文件夹。

我提取的Crystax NDK

我所做的事情buildozer init

最后我做了buildozer android debug deploy run

1 个答案:

答案 0 :(得分:1)

除了使用pip you should also install安装buildozer之外,还有它的linux依赖项。

如果您想使用特定的NDK,则应在运行char *mdString = malloc(DIGEST_LENGTH*2+1); 后编辑项目文件夹中出现的buildozer.spec文件。

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