- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前使用的是 python 2.7.9。我试过重新安装 cython 并更新所有依赖项,但它没有用。我不知道 Buildozer 或 Cython 有什么问题。该应用程序直接从终端正常运行。
#error Do not use this file, it is the result of a failed Cython compilation.
^
error: command 'ccache' failed with exit status 1
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void stop(self):
'''Stop using the shader.
'''
glUseProgram(0)
cdef void set_uniform(self, str name, value):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:233:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef dict uniform_locations
cdef dict uniform_values
cdef void use(self)
cdef void stop(self)
cdef void set_uniform(self, str name, value) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:29:25: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
if name in self.uniform_values and self.uniform_values[name] == value:
return
self.uniform_values[name] = value
self.upload_uniform(name, value)
cdef void upload_uniform(self, str name, value):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:239:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef dict uniform_values
cdef void use(self)
cdef void stop(self)
cdef void set_uniform(self, str name, value) except *
cdef void upload_uniform(self, str name, value) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:30:28: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef GLfloat mat[16]
for x in xrange(16):
mat[x] = <GLfloat>value.mat[x]
glUniformMatrix4fv(loc, 1, False, mat)
cdef int get_uniform_loc(self, str name):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:424:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void use(self)
cdef void stop(self)
cdef void set_uniform(self, str name, value) except *
cdef void upload_uniform(self, str name, value) except *
cdef void upload_uniform_matrix(self, int loc, Matrix value)
cdef int get_uniform_loc(self, str name) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:32:28: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
glEnableVertexAttribArray(attr.index)
# save for the next run.
self._current_vertex_format = vertex_format
cdef void build(self):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:465:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void stop(self)
cdef void set_uniform(self, str name, value) except *
cdef void upload_uniform(self, str name, value) except *
cdef void upload_uniform_matrix(self, int loc, Matrix value)
cdef int get_uniform_loc(self, str name) except *
cdef void build(self) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:33:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void build(self):
self.build_vertex()
self.build_fragment()
cdef void build_vertex(self, int link=1):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:469:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_uniform(self, str name, value) except *
cdef void upload_uniform(self, str name, value) except *
cdef void upload_uniform_matrix(self, int loc, Matrix value)
cdef int get_uniform_loc(self, str name) except *
cdef void build(self) except *
cdef void build_vertex(self, int link=*) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:34:26: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
if self.vertex_shader is not None:
glAttachShader(self.program, self.vertex_shader.shader)
if link:
self.link_program()
cdef void build_fragment(self, int link=1):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:479:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void upload_uniform(self, str name, value) except *
cdef void upload_uniform_matrix(self, int loc, Matrix value)
cdef int get_uniform_loc(self, str name) except *
cdef void build(self) except *
cdef void build_vertex(self, int link=*) except *
cdef void build_fragment(self, int link=*) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:35:28: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
if self.fragment_shader is not None:
glAttachShader(self.program, self.fragment_shader.shader)
if link:
self.link_program()
cdef void link_program(self):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:489:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void upload_uniform_matrix(self, int loc, Matrix value)
cdef int get_uniform_loc(self, str name) except *
cdef void build(self) except *
cdef void build_vertex(self, int link=*) except *
cdef void build_fragment(self, int link=*) except *
cdef void link_program(self) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:36:26: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
elif self._stencilbuffer_attached:
glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT)
else:
glClear(GL_COLOR_BUFFER_BIT)
cdef void apply(self):
^
------------------------------------------------------------
kivy/graphics/fbo.pyx:326:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
if self.context_state:
context.set_states(self.context_state)
if self.context_pop:
context.pop_states(self.context_pop)
cdef void set_state(self, str name, value):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:258:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef dict context_state
cdef list context_push
cdef list context_pop
cdef RenderContext get_context(self)
cdef void set_state(self, str name, value) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:61:23: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_state(self, str name, value):
self.context_state[name] = value
self.flag_update()
cdef void push_state(self, str name):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:262:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef list context_push
cdef list context_pop
cdef RenderContext get_context(self)
cdef void set_state(self, str name, value) except *
cdef void push_state(self, str name) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:62:24: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_state(self, str name):
self.context_push.append(name)
self.flag_update()
cdef void pop_state(self, str name):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:266:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef list context_pop
cdef RenderContext get_context(self)
cdef void set_state(self, str name, value) except *
cdef void push_state(self, str name) except *
cdef void pop_state(self, str name) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:63:23: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
self._shader.set_uniform(name, value)
cdef get_state(self, str name):
return self.state_stacks[name][-1]
cdef void set_states(self, dict states):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:789:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int _use_parent_modelview
cdef void set_texture(self, int index, Texture texture)
cdef void set_state(self, str name, value, int apply_now=?)
cdef get_state(self, str name)
cdef void set_states(self, dict states) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:116:24: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_states(self, dict states):
cdef str name
for name, value in states.iteritems():
self.set_state(name, value)
cdef void push_state(self, str name):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:794:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_texture(self, int index, Texture texture)
cdef void set_state(self, str name, value, int apply_now=?)
cdef get_state(self, str name)
cdef void set_states(self, dict states) except *
cdef void push_state(self, str name) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:117:24: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_state(self, str name):
stack = self.state_stacks[name]
stack.append(stack[-1])
self.flag_update()
cdef void push_states(self, list names):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:799:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_texture(self, int index, Texture texture)
cdef void set_state(self, str name, value, int apply_now=?)
cdef get_state(self, str name)
cdef void set_states(self, dict states) except *
cdef void push_state(self, str name) except *
cdef void push_states(self, list names) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:118:25: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names):
cdef str name
for name in names:
self.push_state(name)
cdef void pop_state(self, str name):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:804:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_state(self, str name, value, int apply_now=?)
cdef get_state(self, str name)
cdef void set_states(self, dict states) except *
cdef void push_state(self, str name) except *
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:119:23: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
oldvalue = stack.pop()
if oldvalue != stack[-1]:
self.set_state(name, stack[-1])
self.flag_update()
cdef void pop_states(self, list names):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:811:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef get_state(self, str name)
cdef void set_states(self, dict states) except *
cdef void push_state(self, str name) except *
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:120:24: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
_active_texture = index
glActiveTexture(GL_TEXTURE0 + index)
texture.bind()
self.flag_update()
cdef void enter(self):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:831:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_states(self, dict states) except *
cdef void push_state(self, str name) except *
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:121:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
self.flag_update()
cdef void enter(self):
self._shader.use()
cdef void leave(self):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:834:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_state(self, str name) except *
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:122:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
self._shader.use()
cdef void leave(self):
self._shader.stop()
cdef void apply(self):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:837:9: 'apply' already defined
Error compiling Cython file:
------------------------------------------------------------
...
self._shader.use()
cdef void leave(self):
self._shader.stop()
cdef void apply(self):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:837:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
/home/sterilistic/Desktop/PongApp/.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/sterilistic/Desktop/PongApp/.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.
Using this graphics system: OpenGL ES 2
running build_ext
Build configuration is:
* use_rpi = 0
* use_opengl_es2 = 1
* use_opengl_debug = 0
* use_glew = 0
* use_sdl2 = 0
* use_ios = 0
* use_mesagl = 0
* use_x11 = 0
* use_gstreamer = 0
* use_avfoundation = 0
* use_osx_frameworks = 0
* debug = False
Detected compiler is unix
building 'kivy.graphics.opengl' extension
kivy/graphics/vbo.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 'ccache' failed with exit status 1
# Command failed: ./distribute.sh -m "kivy" -d "myapp"
#
# 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
最佳答案
这是不兼容的 cython 版本的问题。尝试使用 kivy 的 master 分支(将 kivy==master
添加到 buildozer.spec)并确保 buildozer 通过删除 .buildozer
目录重新下载 python-for-android你的应用程序目录。不要删除主目录中的那个,它包含(更大的)Android SDK 和 NDK,您不想再次下载它们。
关于kivy - Kivy 和 Buildozer 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32439773/
这是我在构建我的 Android 应用程序时得到的显示。请帮忙! 可安装或更新的软件包:3 id: 1 or "tools" Type: Tool Desc: Android SD
谁能解决我的问题我在 linux 虚拟机上使用 buildozer 将 .py 文件转换为我的 android 手机的 apk 这是我的第一个 kivy 项目,我真的需要一些帮助才能使它成为可能 这是
我已经摸索了 3 天,试图让它工作。 (对android)我一直在互联网上,我已经尝试使用github.com/kivy/buildozer上列出的两个vm(顶部的引用和底部的引用)使用网站上提供的说
当我尝试使用 buildozer android debug deploy run 在我的设备上构建、推送和自动运行 apk 时,它显示了这些错误: # Check configuration tok
我正在使用 buildozer 开发带有 kivy 的 android 应用程序。 在我的 Ubuntu 中,编译 buildozer 后,我认为它会创建日志文件或 创建某种文件来占用我的硬盘。 你能
我之前将我的应用构建为 apk,但几天后我无法为 android 构建或更新。 我的.buildozer/android/platform/python-for-android是空的,不知道是不是什么
我正在尝试为我用 Python 3 编写的程序制作一个 Android 应用。 在此之前我已经处理并解决了几个问题,但目前我不知道是什么导致了这个问题。如果您需要任何其他信息来帮助我解决此问题,我将非
我正在尝试构建我的 kivy 应用程序,但是运行 buildozer android debug --verbose 我得到的唯一信息如下: [...] Run prebuild Call prebu
我尝试用 buildozer 为 android 编译 kivy,但它没有工作,我找不到解决这个问题的方法。所以我尝试从 kivy 网站安装虚拟机,它应该包括这个,来自这个链接: http://kiv
在构建 apk 时,在 Windows 中与 Ubuntu 18.04 虚拟机共享文件夹中编写的项目会出现以下错误: # Install platform # Run 'git config
运行时出现以下错误 buildozer android debug deploy run (VirtualBox 上的 Ubuntu 64 14.04): Traceback (most recent
我已经尝试构建 APK 3 天了。总的来说,我对 Linux 很陌生,我已经按照本教程进行操作:https://www.youtube.com/watch?v=kcte8vcGMSU 我按照他的说明做
我正在尝试运行 buildozer 第一步buildozer init没问题 当我这样做时:buildozer -v android debug它给我发了错误: JAVA_HOME is set to
我正在尝试使用 buildozer 将 python 文件编译为 APK。安装所有依赖项(包括 SDK 和 NDK)并运行 buildozer android deploy run 后,出现以下错误:
我目前使用的是 python 2.7.9。我试过重新安装 cython 并更新所有依赖项,但它没有用。我不知道 Buildozer 或 Cython 有什么问题。该应用程序直接从终端正常运行。 #er
我正在尝试使用 buildozer 编译我的 kivy 应用程序。我在 kivy Android 虚拟机上使用 Windows。 configure: error: in '/home/kivy/Mo
我在 VirtualBox 上使用 Ubuntu 64 14.04,我已经使用 Buildozer 成功制作了 .apk 文件,但是当我在 Android SDK 模拟器(在 Windows 上运行)
我曾尝试在 android 的 kivy 应用程序上导入 python 模块,无论如何,每当我在 buildozer.spec 中添加需求时,构建都会失败: # Run 'pip install --
我使用 Python 2.7 构建了一个 kivy 应用程序。我使用了导入语句 from kivy.app import App from kivy.uix.floatlayout import Fl
我已经使用 pymysql 模块在 kivy 中创建了一个应用程序来创建一个简单的登录系统。 python 文件在我的桌面上运行时没有错误,但是当我在我的 Nexus 平板电脑上运行该应用程序时,它崩
我是一名优秀的程序员,十分优秀!