Bonjour,

I usually use Cython 0.16 to compile Soya (and no longer Pyrex).

Can you verify that _activate() is defined (it should be in shader.pyx) ?

I'm currently rewriting the Soya's shading system (and almost all Soya ;)  but 
nothing has been committed yet in the SVN, so it should not be a problem.

Cordialement,
Jean-Baptiste Lamy


Le Wed, 09 May 2012 14:50:39 +0200,
Fabio Varesano <fabio.vares...@gmail.com> a écrit :

> 
> >>> [fabio@gamma soya]$ python2 setup.py build
> >>> Pyrex found - compilation enabled
> >
> > Remove pyrex and install cython. Does it fixes the issue ?
> >
> 
> It doesn't seem to work.. it seems to fail with exactly the same kind 
> of problems.. something wrong with the code? Below the errors.
> 
> 
> Error compiling Cython file:
> ------------------------------------------------------------
> ...
> cdef class _ARBShaderProgram(_CObj):
>          cdef readonly GLuint shader_type
>          cdef readonly GLuint _prog_id
>          cdef readonly object code
>          cdef public object _filename
>          cdef void _activate(self)
>                     ^
> ------------------------------------------------------------
> 
> ./definitions/model/shader.pxd:8:20: C method '_activate' is declared 
> but not defined
> 
> Error compiling Cython file:
> ------------------------------------------------------------
> ...
>          cdef readonly GLuint shader_type
>          cdef readonly GLuint _prog_id
>          cdef readonly object code
>          cdef public object _filename
>          cdef void _activate(self)
>          cdef void _inactivate(self)
>                       ^
> ------------------------------------------------------------
> 
> ./definitions/model/shader.pxd:9:22: C method '_inactivate' is 
> declared but not defined
> 
> Error compiling Cython file:
> ------------------------------------------------------------
> ...
>          cdef readonly GLuint _prog_id
>          cdef readonly object code
>          cdef public object _filename
>          cdef void _activate(self)
>          cdef void _inactivate(self)
>          cdef void _set_env_parameter(self, int index, float v0,
> float v1, float v2, float v3)
>                              ^
> ------------------------------------------------------------
> 
> ./definitions/model/shader.pxd:10:29: C method '_set_env_parameter'
> is declared but not defined
> 
> Error compiling Cython file:
> ------------------------------------------------------------
> ...
>          cdef readonly object code
>          cdef public object _filename
>          cdef void _activate(self)
>          cdef void _inactivate(self)
>          cdef void _set_env_parameter(self, int index, float v0,
> float v1, float v2, float v3)
>          cdef void _set_local_parameter(self, int index, float v0, 
> float v1, float v2, float v3)
>                                ^
> ------------------------------------------------------------
> 
> ./definitions/model/shader.pxd:11:31: C method '_set_local_parameter' 
> is declared but not defined
> 
> Error compiling Cython file:
> ------------------------------------------------------------
> ...
> 
>                  glPopAttrib()
> 
>                  global _texture_on_depth_buffer_shader
>                  if _texture_on_depth_buffer_shader is None:
>                          _texture_on_depth_buffer_shader = 
> _ARBShaderProgram(SHADER_TYPE_FRAGMENT, """!!ARBfp1.0
>  
>       ^
> ------------------------------------------------------------
> 
> soya3d/atmosphere.pyx:487:75: undeclared name not builtin: 
> SHADER_TYPE_FRAGMENT
> building 'soya._soya' extension
> creating build/temp.linux-x86_64-2.7
> gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 
> -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 
> -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector 
> --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I.
> -I/usr/include -I/usr/local/include -I/usr/X11R6/include
> -I/usr/X11/include -I/usr/include/freetype2
> -I/usr/X11/include/freetype2 -I/usr/local/include/freetype2
> -I/usr/include/cal3d -I/usr/local/include/cal3d -I/sw/include
> -I/opt/local/include -I/opt/local/include/freetype2
> -I/usr/include/python2.7 -c soya._soya.c -o
> build/temp.linux-x86_64-2.7/soya._soya.o -w -fsigned-char
> soya._soya.c:1:2: error: #error Do not use this file, it is the
> result of a failed Cython compilation. error: command 'gcc' failed
> with exit status 1
> 
> 
> _______________________________________________
> Soya-user mailing list
> Soya-user@gna.org
> https://mail.gna.org/listinfo/soya-user

_______________________________________________
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user

Reply via email to