Buildozer错误:命令失败:./distribute.sh -m" kivy" -d" randomapp"

时间:2016-01-09 01:02:04

标签: android python kivy buildozer

我有一个用python(kivy)编写的简单项目,我使用buildozer为Android平台制作.apk文件。但由于某种原因,编制它并不成功。我认为pythoh-for-android模块存在问题,因为它给了我错误:

# Command failed: ./distribute.sh -m "kivy" -d "randomapp"
# 
# 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

但是当我添加log_level = 2时,我发现它说lpng丢失了:

 /home/shakle17/shakle/rand0m/.buildozer/android/platform/python-for-android/bui/home/shakle17/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpng
collect2: error: ld returned 1 exit status

我正在使用Fedora23并且我已经在dnf软件包管理器中安装了所有库(libpng,libpng-devel for x64和i686 platform),但问题仍然存在。

1 个答案:

答案 0 :(得分:0)

我已经修好了。我已经从官方网站安装了libpng,而不是运行builodzer android clean,然后修复了