android


Making apk with Kivy and Buildozer on Ubuntu 12.04


I'm not able to make APK of my simple kivy module with buildozer.
Following is the error dump:
Entering in ARM enviromnent
Compiler found at /home/roshan/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin//arm-linux-androideabi-gcc
/home/roshan/AndroidApp/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running build_ext
building 'jnius' extension
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/roshan/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/roshan/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -fPIC -I/home/roshan/AndroidApp/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c jnius/jnius.c -o build/temp.linux-i686-2.7/jnius/jnius.o
jnius/jnius.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
^
error: command 'arm-linux-androideabi-gcc' failed with exit status 1
Compiling /home/roshan/AndroidApp/.buildozer/android/platform/python-for-android/build/pyjnius/pyjnius-master/jnius/jnius.pyx
Error compiling Cython file:
------------------------------------------------------------
...
cdef class ByteArray:
cdef LocalRef _jobject
cdef long _size
cdef jbyte *_buf
cdef jbyte[:] _arr
^
------------------------------------------------------------
jnius/jnius_nativetypes.pxi:19:15: Expected an identifier or literal
/home/roshan/AndroidApp/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running build_ext
building 'jnius' extension
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/roshan/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/roshan/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -fPIC -I/home/roshan/AndroidApp/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c jnius/jnius.c -o build/temp.linux-i686-2.7/jnius/jnius.o
jnius/jnius.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
^
error: command 'arm-linux-androideabi-gcc' failed with exit status 1
# Command failed: ./distribute.sh -m "kivy" -d "Playstring"
How to resolve it. I tried installing cython again but it did not helped.
It looks like your Cython is too old. I had similar issues when I started Kivy development on 12.04. Try installing a newer version from PPA or using PIP.
From PPA:
sudo apt-add-repository ppa:cython-dev/master-ppa
sudo apt-get update
sudo apt-get install cython
Using PIP:
sudo apt-get install python-pip
sudo pip install --upgrade cython

Related Links

running parallel tests - genymotion and cucumber
Error compiling mtpd/mtpd.o: undefined reference to `android_get_control_socket'
How to arrange the chip in second row when the first row is filled in linear layout horizontal?
Want to add horizontal spacing between cards of CardView in android?
Indoor map in android
Error “No static method isCtrlPressed” in Android
Android.mk File: Relative path of all directories and subdirectories
Android change the name of app which is to installed on homescreen
how to set value from textwatcher to specific multiple textviews in android
ExifInterface: Invalid image.java.io.IOException
Reset all checkbox in Android
How to implement Firebase Google Signin in Android?
Android unzip zip file from internal storage
java.lang.NoSuchMethodError: android.net.http.SslError.b
How to enable stacktrace react-native run-android command?
how to set parameters to volley request (GET request )?

Categories

HOME
grok
fabricjs
turing-machines
cobalt
phpmyadmin
twig
serialization
knitr
edge
settings
jquery-ui-sortable
plist
symmetricds
libusb
coin3d
entitymanager
symfony-2.8
red5
git-extensions
solrcloud
breadth-first-search
poedit
rubymotion
question2answer
systemtime
pimcore
mongoid6
epsilon
datastax-enterprise-graph
comparable
carrierwave
jmockit
installshield-le
reason
salesforce-communities
xdocreport
node-mssql
p4merge
chef-solo
resolution
doc
dcmtk
softmax
placeholder
xbmc
textsum
bluez
convex-optimization
modelsim
java-6
quicktime
java-websocket
d3-force-directed
vcloud-director-rest-api
webjars
xcode-server
http-status-code-401
dbamp
findfirst
tfs-workitem
oracle-spatial
pax-exam
evolus-pencil
ember-cli-rails
alloy-ui
fits
xmltype
cross-join
sql-scripts
unix-socket
named-parameters
cuba
rcaller
wxformbuilder
memset
dot42
synapse
clickbank
visual-studio-express
http-patch
away3d
isqlquery
pagedown
virtual-pc
sqlclr
qtconcurrent
appjs
expression-blend-4
w3c-geolocation
dot-emacs
blender-2.49
pagemethods
build-environment
technical-debt

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App