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

Calling AsyncTask from another activity
Reliable way to detect application launch from home / desktop?
Get String From Different Values Folder in Android
how to make Android Application restart automatically on phone restart
Playing mp4 videos android app
How to create bar charts in android using achartengine
dropdown value is save in mysql database via soap webservices in android
How do I call pendingIntent just before setting AlarmManager for it
understanding why android activities are getting created in this scenario
Yahoo Weather Api Language
How to stop phone ringing when play (speak) caller name and then phone ringing again
Android: How to send Content with HttpPut request
why TypedArray.getIndexCount() always returns 0
Android Samsung Galaxy NOTE trouble with togglekeyboard
how to display telugu characters in my android application
Insert a new android contact photo

Categories

HOME
google-app-engine
cobalt
design-patterns
deep-learning
pagination
static
fftw
tvos
android-json
code-coverage
drop-down-menu
activecollab
powershell-v5.0
red5
asp.net-mvc-viewmodel
digital-signature
simpleitk
kendo-mobile
exit
exploit
tiki-wiki
siri
jquery-multiselect
amazon-quicksight
paperjs
jaws
eviews
dst
r-grid
autolisp
slacktextviewcontroller
least-squares
sim-toolkit
jpad
bc
attributeerror
wmp
bindingnavigator
clang++
vaadin-elements
pom.xml
jboss-4.2.x
configurationmanager
identification
custom-font
tinkerpop
truezip
headless
pdf-conversion
payload
jtree
branch-prediction
pocketsphinx-android
windows-azure-queues
jodd
model-associations
jquery-jscrollpane
expectations
angular-ui-typeahead
cda
fuzzywuzzy
beanstalk
kendo-upload
concept-insights
spring-retry
libvlc
evolus-pencil
linked-tables
ms-access-2000
zxspectrum
ghcjs
deform
metatrader5
ss7
verold
personalization
ora-00904
bin
artemis
model-driven-development
process-explorer
octal
argouml
xcode3.2
wcf-configuration
subproject
convention
flex-mobile
procedures
u2netdk
massive
dataform
cloudfiles
presentation-layer
easyb
aspmenu
django-piston
cuda.net

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