2015-04-20 47 views
53

我試圖用buildozer創建Android包我Kivy的應用程序,但我得到這個錯誤,當我嘗試包括numpy錯誤包裝Kivy使用的Android numpy的庫buildozer

簡歷錯誤:

compile options: '-DNO_ATLAS_INFO=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/home/joao/github/buildozer/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/multiarray -Ibuild/src.linux-x86_64-2.7/numpy/core/src/umath -c' 
ccache: numpy/linalg/lapack_litemodule.c 
ccache: numpy/linalg/python_xerbla.c 
/usr/bin/gfortran -Wall -lm build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o build/temp.linux-x86_64-2.7/numpy/linalg/python_xerbla.o -L/usr/lib -L/home/joao/github/buildozer/.buildozer/android/platform/python-for-android/build/python-install/lib -Lbuild/temp.linux-x86_64-2.7 -llapack -lblas -lpython2.7 -lgfortran -o build/lib.linux-x86_64-2.7/numpy/linalg/lapack_lite.so 
/usr/bin/ld: build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40) 
/usr/bin/ld: build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40) 
build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: error adding symbols: File in wrong format 
collect2: error: ld returned 1 exit status 
/usr/bin/ld: build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40) 
/usr/bin/ld: build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40) 
build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: error adding symbols: File in wrong format 
collect2: error: ld returned 1 exit status 
unable to execute _configtest: Exec format error 
error: Command "/usr/bin/gfortran -Wall -lm build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o build/temp.linux-x86_64-2.7/numpy/linalg/python_xerbla.o -L/usr/lib -L/home/joao/github/buildozer/.buildozer/android/platform/python-for-android/build/python-install/lib -Lbuild/temp.linux-x86_64-2.7 -llapack -lblas -lpython2.7 -lgfortran -o build/lib.linux-x86_64-2.7/numpy/linalg/lapack_lite.so" failed with exit status 1 

有沒有人知道如何解決它?

P.S.我使用Ubuntu 14.04 64位

+0

你能後的全buildozer日誌(一切後鍵入「buildozer Android的調試「)? – inclement

+0

也許去kivy用戶支持組(谷歌,這是一個谷歌組),並在那裏發佈您的問題。您可以將完整的buildozer日誌作爲文件附加。 – Totem

+0

@Totem我已經在文章中包含了整個日誌文件 –

回答

8

嘗試命令和apt-get安裝libatlas基-DEV它看起來像你錯過了一些圖書館

+0

如果這個答案有效,請選擇它。謝謝。 –

+0

對不起,我不能在下個月測試它......但如果它得到超過10個upvotes,我會認爲它適用於10人並接受它。 –