2016-01-09 42 views
0

我有一個用Python(kivy)編寫的簡單項目,我使用buildozer爲Android平臺製作.apk文件。但由於某種原因編譯它不是成功的。我認爲這是與pythoh換機器人模塊一個問題,因爲它給我的錯誤:Buildozer錯誤:命令失敗:./distribute.sh -m「kivy」-d「randomapp」

# 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平臺),但問題仍然存在。

+0

它看起來像一些PNG庫(可能是開發包)必須安裝在您的系統上。 –

+0

像我之前說過的,我已經安裝了libpng,libpng-devel x64和i686版本以及其他x-png或png-x模塊,但問題仍然存在 – lcadc17

+0

這可能是libpng在Android版本中不存在,而不是你的系統。發佈完整日誌。 – inclement

回答

0

我修復了它。我已經安裝了官方網站的libpng,比運行:builodzer android clean,之後它已被修復

相關問題