我在Ubuntu12.04上安装了python、libglu-dev和libevent包,但是当我试图从sudo python setup.py安装安装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.如果有人能告诉我该怎么做,我会很高兴的。我什么都试过了。提前谢谢你。
发布于 2013-05-29 05:46:02
您可以使用PPA在ubuntu中安装kivy:
sudo add-apt-repository ppa:kivy-team/kivy
sudo apt-get update
sudo apt-get install python-kivyPPA主页:https://launchpad.net/~kivy-team/+archive/kivy
正如PPA描述部分所述,这是您失败的原因:
注意:我们可能在这里上传了Cython包,但不要保证这些都能工作!我们只是让它们托管在那里,因为Cython的构建问题超过了0.18.0。
https://stackoverflow.com/questions/16806185
复制相似问题