我有一个用 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 平台),但问题仍然存在。