Skip to content

Error compiling #541

@Zerokami

Description

@Zerokami

I get the following errors when I compiling with buildozer.

arm-linux-androideabi-gcc: error: kivy/graphics/opengl.c: No such file or directory
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.
 error: command 'arm-linux-androideabi-gcc' failed with exit status 1

Error compiling Cython file:
------------------------------------------------------------
...
        # Apply the existing arguments to our widget
        for key, value in kwargs.iteritems():
            if key in properties:
                setattr(self, key, value)

    def register_event_type(self, basestring event_type):
                                 ^
------------------------------------------------------------

kivy/_event.pyx:273:34: 'basestring' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...

        # Add the event type to the stack
        if event_type not in self.__event_stack:
            self.__event_stack[event_type] = EventObservers(1, 0)

    def unregister_event_types(self, basestring event_type):
                                    ^
------------------------------------------------------------

kivy/_event.pyx:312:37: 'basestring' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        '''Unregister an event type in the dispatcher.
        '''
        if event_type in self.__event_stack:
            del self.__event_stack[event_type]

    def is_event_type(self, basestring event_type):
                           ^
------------------------------------------------------------

kivy/_event.pyx:318:28: 'basestring' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        .. versionadded:: 1.8.0

        '''
        return self.__event_stack.keys()

    def dispatch(self, basestring event_type, *largs, **kwargs):
                      ^
------------------------------------------------------------

kivy/_event.pyx:674:23: 'basestring' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
            return True

        handler = getattr(self, event_type)
        return handler(*largs, **kwargs)

    def dispatch_generic(self, basestring event_type, *largs, **kwargs):
                              ^
------------------------------------------------------------

kivy/_event.pyx:701:31: 'basestring' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
    def dispatch_generic(self, basestring event_type, *largs, **kwargs):
        if event_type in self.__event_stack:
            return self.dispatch(event_type, *largs, **kwargs)
        return self.dispatch_children(event_type, *largs, **kwargs)

    def dispatch_children(self, basestring event_type, *largs, **kwargs):
                               ^
------------------------------------------------------------

kivy/_event.pyx:706:32: 'basestring' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        global cache_properties
        cdef dict cp = cache_properties
        cdef dict attrs_found
        cdef list attrs
        cdef Property attr
        cdef basestring k
            ^
------------------------------------------------------------

kivy/_event.pyx:176:13: 'basestring' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        # self.register_event_type)

        # If not done yet, discover __events__ on all the baseclasses
        cdef dict ce = cache_events
        cdef list events
        cdef basestring event
            ^
------------------------------------------------------------

kivy/_event.pyx:214:13: 'basestring' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        # then auto register
        for event in events:
            self.__event_stack[event] = EventObservers(1, 0)

    def __init__(self, **kwargs):
        cdef basestring func, name, key
            ^
------------------------------------------------------------

kivy/_event.pyx:245:13: 'basestring' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
    cdef int SDL_GetTextureBlendMode(SDL_Texture * texture, SDL_BlendMode *blendMode)
    cdef SDL_Surface * SDL_CreateRGBSurfaceFrom(void *pixels, int width, int height, int depth, int pitch, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask)
    cdef SDL_Surface* SDL_ConvertSurface(SDL_Surface* src, SDL_PixelFormat* fmt, Uint32 flags)
    cdef SDL_Surface* SDL_ConvertSurfaceFormat(SDL_Surface* src, Uint32
            pixel_format, Uint32 flags)
    cdef const char* SDL_GetPixelFormatName(Uint32 format)
                  ^
------------------------------------------------------------

kivy/core/clipboard/../../lib/sdl2.pxi:455:19: Syntax error in C variable declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef int SDL_GetTextureBlendMode(SDL_Texture * texture, SDL_BlendMode *blendMode)
    cdef SDL_Surface * SDL_CreateRGBSurfaceFrom(void *pixels, int width, int height, int depth, int pitch, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask)
    cdef SDL_Surface* SDL_ConvertSurface(SDL_Surface* src, SDL_PixelFormat* fmt, Uint32 flags)
    cdef SDL_Surface* SDL_ConvertSurfaceFormat(SDL_Surface* src, Uint32
            pixel_format, Uint32 flags)
    cdef const char* SDL_GetPixelFormatName(Uint32 format)
                  ^
------------------------------------------------------------

kivy/core/audio/../../../kivy/lib/sdl2.pxi:455:19: Syntax error in C variable declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef int SDL_GetTextureBlendMode(SDL_Texture * texture, SDL_BlendMode *blendMode)
    cdef SDL_Surface * SDL_CreateRGBSurfaceFrom(void *pixels, int width, int height, int depth, int pitch, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask)
    cdef SDL_Surface* SDL_ConvertSurface(SDL_Surface* src, SDL_PixelFormat* fmt, Uint32 flags)
    cdef SDL_Surface* SDL_ConvertSurfaceFormat(SDL_Surface* src, Uint32
            pixel_format, Uint32 flags)
    cdef const char* SDL_GetPixelFormatName(Uint32 format)
                  ^
------------------------------------------------------------

kivy/core/text/../../lib/sdl2.pxi:455:19: Syntax error in C variable declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef int SDL_GetTextureBlendMode(SDL_Texture * texture, SDL_BlendMode *blendMode)
    cdef SDL_Surface * SDL_CreateRGBSurfaceFrom(void *pixels, int width, int height, int depth, int pitch, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask)
    cdef SDL_Surface* SDL_ConvertSurface(SDL_Surface* src, SDL_PixelFormat* fmt, Uint32 flags)
    cdef SDL_Surface* SDL_ConvertSurfaceFormat(SDL_Surface* src, Uint32
            pixel_format, Uint32 flags)
    cdef const char* SDL_GetPixelFormatName(Uint32 format)
                  ^
------------------------------------------------------------

kivy/core/window/../../../kivy/lib/sdl2.pxi:455:19: Syntax error in C variable declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef int SDL_GetTextureBlendMode(SDL_Texture * texture, SDL_BlendMode *blendMode)
    cdef SDL_Surface * SDL_CreateRGBSurfaceFrom(void *pixels, int width, int height, int depth, int pitch, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask)
    cdef SDL_Surface* SDL_ConvertSurface(SDL_Surface* src, SDL_PixelFormat* fmt, Uint32 flags)
    cdef SDL_Surface* SDL_ConvertSurfaceFormat(SDL_Surface* src, Uint32
            pixel_format, Uint32 flags)
    cdef const char* SDL_GetPixelFormatName(Uint32 format)
                  ^
------------------------------------------------------------


 error: command 'arm-linux-androideabi-gcc' failed with exit status 1
# Command failed: ./distribute.sh -m "kivy openssl lxml" -d "apvehicle"
# 
# 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions