我在 Ubuntu 12.04 上安装了 python-dev 、 libglu-dev 和 libevent-dev 软件包,但是当我尝试从 sudo python setup.py install 安装 kivy 时,它会抛出以下错误。
Error compiling Cython file:
-----------------------------------------------------------
. ..
glDeleteFramebuffers(len(self.lr_fbo_fb), arr.data.as_uints)
del self.lr_fbo_fb[:]
if len(self.lr_fbo_rb):
Logger.trace('Context: releasing %d renderbuffer fbos' % len(self.lr_fbo_fb))
arr = self.lr_fbo_rb
glDeleteRenderbuffers(len(self.lr_fbo_rb), arr.data.as_uints)
^
kivy/graphics/context.pyx:303:63: Cannot convert Python object to 'GLuint *'
building 'kivy.graphics.context' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c kivy/graphics/context.c -o build/temp.linux-x86_64-2.7 /kivy/graphics/context.o
kivy/graphics/context.c:1:2: error: #error Do not use this file, it is the result of failed Cython compilation.
如果有人能给我做什么,我会很高兴。我什么都试过了。先感谢您。