Skip to content

Instantly share code, notes, and snippets.

@rastogiachyut
Created April 2, 2015 02:04
Show Gist options
  • Save rastogiachyut/d8ec3dfb09e741753415 to your computer and use it in GitHub Desktop.
Save rastogiachyut/d8ec3dfb09e741753415 to your computer and use it in GitHub Desktop.
Buildozer problem
achyut@achyut-Inspiron-3537:~$ buildozer android debug# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
# -> found at /usr/lib/jvm/java-7-oracle/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-7-oracle/jre/bin/keytool
# Install platform
# Apache ANT found at /home/achyut/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/achyut/.buildozer/android/platform/android-sdk-21
# Android NDK found at /home/achyut/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Run './distribute.sh -l'
# Cwd /home/achyut/.buildozer/android/platform/python-for-android
Available modules: android apsw audiostream c_igraph cprotobuf cymunk django docutils ffmpeg gevent greenlet hostpython igraph jpeg kivent kivy libevent libpq libswift libxml2 libxslt libyaml lxml m2crypto msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools sqlalchemy sqlite3 storm swift twisted txws wokkel zope
# Application requirements already installed, pass
# Check garden requirements
# Compile platform
# Run './distribute.sh -l'
# Cwd /home/achyut/.buildozer/android/platform/python-for-android
Available modules: android apsw audiostream c_igraph cprotobuf cymunk django docutils ffmpeg gevent greenlet hostpython igraph jpeg kivent kivy libevent libpq libswift libxml2 libxslt libyaml lxml m2crypto msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools sqlalchemy sqlite3 storm swift twisted txws wokkel zope
# Clean and build python-for-android
# Remove directory and subdirectory /home/achyut/.buildozer/android/platform/python-for-android/dist/kivycrash2
# Run './distribute.sh -m "kivy" -d "kivycrash2"'
# Cwd /home/achyut/.buildozer/android/platform/python-for-android
Check build dependencies for Ubuntu
Packages missing: cython
It might break the compilation, except if you installed thoses packages manually.
Check environment
SDK located at /home/achyut/.buildozer/android/platform/android-sdk-21
NDK located at /home/achyut/.buildozer/android/platform/android-ndk-r9c
NDK version is r9c
API level set to 14
Check NDK location
Check mandatory tools
Distribution will be located at /home/achyut/.buildozer/android/platform/python-for-android/dist/kivycrash2
Entering in ARM environment
Compiler found at /home/achyut/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
PATH is /home/achyut/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/:/home/achyut/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/:/home/achyut/.buildozer/android/platform/android-ndk-r9c:/home/achyut/.buildozer/android/platform/android-sdk-21/tools:/home/achyut/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/achyut/.rvm/gems/ruby-2.1.3/bin:/home/achyut/.rvm/gems/ruby-2.1.3@global/bin:/home/achyut/.rvm/rubies/ruby-2.1.3/bin:/home/achyut/bin:/home/achyut/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/achyut/.rvm/bin:/home/achyut/.rvm/bin:/home/achyut/.rvm/bin
Leaving ARM environment
Read kivy recipe
Module kivy depend on pygame pyjnius android
Read pygame recipe
Module pygame depend on python sdl
Read pyjnius recipe
Module pyjnius depend on python sdl
Read android recipe
Module android depend on pygame
Read python recipe
Module python depend on hostpython
Read sdl recipe
Module sdl depend on python
Ignored python, already processed
Ignored sdl, already processed
Ignored pygame, already processed
Read hostpython recipe
Ignored python, already processed
Modules changed to hostpython python sdl pygame pyjnius android kivy
Pure-Python modules changed to
Run get packages
Download package for hostpython
Module hostpython already downloaded
Download package for python
Module python already downloaded
Download package for sdl
No package for sdl
Download package for pygame
Module pygame already downloaded
Download package for pyjnius
Module pyjnius already downloaded
Download package for android
No package for android
Download package for kivy
Module kivy already downloaded
Run prebuild
Call prebuild_hostpython
Call prebuild_python
Call prebuild_sdl
Call prebuild_pygame
Call prebuild_pyjnius
Call prebuild_android
Call prebuild_kivy
Run build
Skipped build_hostpython
Skipped build_python
Skipped build_sdl
Skipped build_pygame
Skipped build_pyjnius
Skipped build_android
Call build_kivy
Entering in ARM environment
Compiler found at /home/achyut/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
[INFO ] Kivy v1.8.0
/home/achyut/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'dependency_links'
warnings.warn(msg)
/home/achyut/.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)
Cython check avoided.
running build_ext
Build configuration is:
* use_rpi = False
* use_opengl_es2 = True
* use_opengl_debug = False
* use_glew = False
* use_sdl = False
* use_ios = False
* use_mesagl = False
* use_x11 = False
* use_gstreamer = False
* use_avfoundation = False
Generate config.h
Generate config.pxi
Detected compiler is unix
building 'kivy.graphics.vertex_instructions' extension
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/achyut/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/achyut/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -fPIC -I/home/achyut/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/include -I/home/achyut/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c kivy/graphics/vertex_instructions.c -o build/temp.linux-x86_64-2.7/kivy/graphics/vertex_instructions.o
kivy/graphics/vertex_instructions.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
Error compiling Cython file:
------------------------------------------------------------
...
# perhaps tangents, what's the position on the spline for parameter t),
#
# b) make that a superclass Spline,
# c) create BezierSpline subclass that does the computation
cdef list _points
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:104:14: C attributes cannot be added in implementation part of extension type defined in a pxd
Error compiling Cython file:
------------------------------------------------------------
...
# perhaps tangents, what's the position on the spline for parameter t),
#
# b) make that a superclass Spline,
# c) create BezierSpline subclass that does the computation
cdef list _points
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:104:14: '_points' redeclared
Error compiling Cython file:
------------------------------------------------------------
...
#
# b) make that a superclass Spline,
# c) create BezierSpline subclass that does the computation
cdef list _points
cdef int _segments
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:105:13: C attributes cannot be added in implementation part of extension type defined in a pxd
Error compiling Cython file:
------------------------------------------------------------
...
#
# b) make that a superclass Spline,
# c) create BezierSpline subclass that does the computation
cdef list _points
cdef int _segments
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:105:13: '_segments' redeclared
Error compiling Cython file:
------------------------------------------------------------
...
# b) make that a superclass Spline,
# c) create BezierSpline subclass that does the computation
cdef list _points
cdef int _segments
cdef bint _loop
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:106:14: C attributes cannot be added in implementation part of extension type defined in a pxd
Error compiling Cython file:
------------------------------------------------------------
...
# b) make that a superclass Spline,
# c) create BezierSpline subclass that does the computation
cdef list _points
cdef int _segments
cdef bint _loop
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:106:14: '_loop' redeclared
Error compiling Cython file:
------------------------------------------------------------
...
# c) create BezierSpline subclass that does the computation
cdef list _points
cdef int _segments
cdef bint _loop
cdef int _dash_offset, _dash_length
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:107:13: C attributes cannot be added in implementation part of extension type defined in a pxd
Error compiling Cython file:
------------------------------------------------------------
...
# c) create BezierSpline subclass that does the computation
cdef list _points
cdef int _segments
cdef bint _loop
cdef int _dash_offset, _dash_length
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:107:13: '_dash_offset' redeclared
Error compiling Cython file:
------------------------------------------------------------
...
# c) create BezierSpline subclass that does the computation
cdef list _points
cdef int _segments
cdef bint _loop
cdef int _dash_offset, _dash_length
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:107:27: C attributes cannot be added in implementation part of extension type defined in a pxd
Error compiling Cython file:
------------------------------------------------------------
...
# c) create BezierSpline subclass that does the computation
cdef list _points
cdef int _segments
cdef bint _loop
cdef int _dash_offset, _dash_length
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:107:27: '_dash_length' redeclared
Error compiling Cython file:
------------------------------------------------------------
...
`mode`: str
Mode of the vbo. Check :attr:`mode` for more information. Defaults to
'points'.
'''
cdef list _vertices
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:297:14: C attributes cannot be added in implementation part of extension type defined in a pxd
Error compiling Cython file:
------------------------------------------------------------
...
`mode`: str
Mode of the vbo. Check :attr:`mode` for more information. Defaults to
'points'.
'''
cdef list _vertices
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:297:14: '_vertices' redeclared
Error compiling Cython file:
------------------------------------------------------------
...
Mode of the vbo. Check :attr:`mode` for more information. Defaults to
'points'.
'''
cdef list _vertices
cdef list _indices
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:298:14: C attributes cannot be added in implementation part of extension type defined in a pxd
Error compiling Cython file:
------------------------------------------------------------
...
Mode of the vbo. Check :attr:`mode` for more information. Defaults to
'points'.
'''
cdef list _vertices
cdef list _indices
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:298:14: '_indices' redeclared
Error compiling Cython file:
------------------------------------------------------------
...
'points'.
'''
cdef list _vertices
cdef list _indices
cdef VertexFormat vertex_format
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:299:22: C attributes cannot be added in implementation part of extension type defined in a pxd
Error compiling Cython file:
------------------------------------------------------------
...
'points'.
'''
cdef list _vertices
cdef list _indices
cdef VertexFormat vertex_format
^
------------------------------------------------------------
kivy/graphics/vertex_instructions.pyx:299:22: 'vertex_format' redeclared
Error compiling Cython file:
------------------------------------------------------------
...
cdef class StripMesh(VertexInstruction):
cdef int icount
cdef int li, lic
cdef int add_triangle_strip(self, float *vertices, int vcount, int icount,
^
------------------------------------------------------------
/home/achyut/kivy/kivy/graphics/vertex_instructions.pxd:17:31: C method 'add_triangle_strip' is declared but not defined
Error compiling Cython file:
------------------------------------------------------------
...
cdef list _vertices
cdef list _indices
cdef VertexFormat vertex_format
cdef int is_built
cdef void build_triangle_fan(self, float *vertices, int vcount, int icount)
^
------------------------------------------------------------
/home/achyut/kivy/kivy/graphics/vertex_instructions.pxd:27:32: C method 'build_triangle_fan' is declared but not defined
[INFO ] Kivy v1.8.0
/home/achyut/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'dependency_links'
warnings.warn(msg)
/home/achyut/.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)
Cython check avoided.
running build_ext
Build configuration is:
* use_rpi = False
* use_opengl_es2 = True
* use_opengl_debug = False
* use_glew = False
* use_sdl = False
* use_ios = False
* use_mesagl = False
* use_x11 = False
* use_gstreamer = False
* use_avfoundation = False
Generate config.h
Generate config.pxi
Detected compiler is unix
building 'kivy.graphics.vertex_instructions' extension
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/achyut/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/achyut/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -fPIC -I/home/achyut/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/include -I/home/achyut/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c kivy/graphics/vertex_instructions.c -o build/temp.linux-x86_64-2.7/kivy/graphics/vertex_instructions.o
kivy/graphics/vertex_instructions.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 "kivycrash2"
#
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment