Skip to content

Instantly share code, notes, and snippets.

@abhijangda
Created September 21, 2013 05:09
Show Gist options
  • Select an option

  • Save abhijangda/6647416 to your computer and use it in GitHub Desktop.

Select an option

Save abhijangda/6647416 to your computer and use it in GitHub Desktop.
python setup.py build_ext --inplace -f
[INFO ] Kivy v1.8.0-dev
User distribution detected, avoid portable command.
Windows platform detected, force GLEW usage.
running build_ext
Build configuration is:
* use_opengl_es2 = True
* use_sdl = False
* use_glew = True
* use_rpi = False
* use_x11 = False
* use_ios = False
* use_opengl_debug = False
* use_mesagl = False
Generate config.h
Generate config.pxi
cythoning kivy\graphics/texture.pyx to kivy\graphics\texture.c
building 'kivy.graphics.texture' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\kivy
creating build\temp.win32-2.7\Release\kivy\graphics
C:\Users\Abhi\Desktop\kivy.stable\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -
IC:\Users\Abhi\Desktop\kivy.stable\Python\include -IC:\Users\Abhi\Desktop\kivy.s
table\Python\PC -c kivy\graphics\texture.c -o build\temp.win32-2.7\Release\kivy\
graphics\texture.o
writing build\temp.win32-2.7\Release\kivy\graphics\texture.def
C:\Users\Abhi\Desktop\kivy.stable\MinGW\bin\gcc.exe -mno-cygwin -shared -s build
\temp.win32-2.7\Release\kivy\graphics\texture.o build\temp.win32-2.7\Release\kiv
y\graphics\texture.def -LC:\Users\Abhi\Desktop\kivy.stable\Python\libs -LC:\User
s\Abhi\Desktop\kivy.stable\Python\PCbuild -lm -lopengl32 -lglew32 -lpython27 -lm
svcr90 -o C:\Users\Abhi\Desktop\kivy.stable\kivy\kivy\graphics\texture.pyd
cythoning kivy\graphics/vertex.pyx to kivy\graphics\vertex.c
building 'kivy.graphics.vertex' extension
C:\Users\Abhi\Desktop\kivy.stable\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -
IC:\Users\Abhi\Desktop\kivy.stable\Python\include -IC:\Users\Abhi\Desktop\kivy.s
table\Python\PC -c kivy\graphics\vertex.c -o build\temp.win32-2.7\Release\kivy\g
raphics\vertex.o
writing build\temp.win32-2.7\Release\kivy\graphics\vertex.def
C:\Users\Abhi\Desktop\kivy.stable\MinGW\bin\gcc.exe -mno-cygwin -shared -s build
\temp.win32-2.7\Release\kivy\graphics\vertex.o build\temp.win32-2.7\Release\kivy
\graphics\vertex.def -LC:\Users\Abhi\Desktop\kivy.stable\Python\libs -LC:\Users\
Abhi\Desktop\kivy.stable\Python\PCbuild -lm -lopengl32 -lglew32 -lpython27 -lmsv
cr90 -o C:\Users\Abhi\Desktop\kivy.stable\kivy\kivy\graphics\vertex.pyd
cythoning kivy\graphics/fbo.pyx to kivy\graphics\fbo.c
building 'kivy.graphics.fbo' extension
C:\Users\Abhi\Desktop\kivy.stable\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -
IC:\Users\Abhi\Desktop\kivy.stable\Python\include -IC:\Users\Abhi\Desktop\kivy.s
table\Python\PC -c kivy\graphics\fbo.c -o build\temp.win32-2.7\Release\kivy\grap
hics\fbo.o
writing build\temp.win32-2.7\Release\kivy\graphics\fbo.def
C:\Users\Abhi\Desktop\kivy.stable\MinGW\bin\gcc.exe -mno-cygwin -shared -s build
\temp.win32-2.7\Release\kivy\graphics\fbo.o build\temp.win32-2.7\Release\kivy\gr
aphics\fbo.def -LC:\Users\Abhi\Desktop\kivy.stable\Python\libs -LC:\Users\Abhi\D
esktop\kivy.stable\Python\PCbuild -lm -lopengl32 -lglew32 -lpython27 -lmsvcr90 -
o C:\Users\Abhi\Desktop\kivy.stable\kivy\kivy\graphics\fbo.pyd
cythoning kivy\graphics/context.pyx to kivy\graphics\context.c
Error compiling Cython file:
------------------------------------------------------------
...
cdef array arr
if len(self.lr_vbo):
Logger.trace('Context: releasing %d vbos' % len(self.lr_vbo))
arr = self.lr_vbo
glDeleteBuffers(len(self.lr_vbo), arr.data.as_uints)
^
------------------------------------------------------------
kivy\graphics\context.pyx:276:54: Cannot convert Python object to 'GLuint *'
Error compiling Cython file:
------------------------------------------------------------
...
del self.lr_vbo[:]
if len(self.lr_texture):
Logger.trace('Context: releasing %d textures: %r' % (
len(self.lr_texture), self.lr_texture))
arr = self.lr_texture
glDeleteTextures(len(self.lr_texture), arr.data.as_uints)
^
------------------------------------------------------------
kivy\graphics\context.pyx:282:59: Cannot convert Python object to 'GLuint *'
Error compiling Cython file:
------------------------------------------------------------
...
glDeleteTextures(len(self.lr_texture), arr.data.as_uints)
del self.lr_texture[:]
if len(self.lr_fbo_fb):
Logger.trace('Context: releasing %d framebuffer fbos' % len(self.lr
_fbo_fb))
arr = self.lr_fbo_fb
glDeleteFramebuffers(len(self.lr_fbo_fb), arr.data.as_uints)
^
------------------------------------------------------------
kivy\graphics\context.pyx:287:62: Cannot convert Python object to 'GLuint *'
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.l
r_fbo_fb))
arr = self.lr_fbo_rb
glDeleteRenderbuffers(len(self.lr_fbo_rb), arr.data.as_uints)
^
------------------------------------------------------------
kivy\graphics\context.pyx:292:63: Cannot convert Python object to 'GLuint *'
building 'kivy.graphics.context' extension
C:\Users\Abhi\Desktop\kivy.stable\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -
IC:\Users\Abhi\Desktop\kivy.stable\Python\include -IC:\Users\Abhi\Desktop\kivy.s
table\Python\PC -c kivy\graphics\context.c -o build\temp.win32-2.7\Release\kivy\
graphics\context.o
kivy\graphics\context.c:1:2: #error Do not use this file, it is the result of a
failed Cython compilation.
error: command 'gcc' failed with exit status 1
make: *** [force] Error 1
@pylover
Copy link
Copy Markdown

pylover commented Jan 31, 2014

try:
pip install cython --upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment