Re: [Soya-user] soya svn not compiling on Archlinux anymore
2012/5/9 Pierre-Yves David > > On 9 mai 2012, at 15:01, Lamy Jean-Baptiste wrote: > > > 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. > > le "je réécrit tout, mais j'ai rien commité me fait dire que tu devrais > vraiment passer à mercurial." (et m'irrite un peu) > > Tu veux un cours gratos dans mon nouvelle appartement ? > > -- 100% agree with that ;-) Distributed VCS (like HG and GIT) are far better for developing things in team. With SVN you're alone rewritting it from scratch, with GIT or HG the changes would be public and someone could be helping you. ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user
Re: [Soya-user] soya svn not compiling on Archlinux anymore
On 9 mai 2012, at 15:01, Lamy Jean-Baptiste wrote: > 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. le "je réécrit tout, mais j'ai rien commité me fait dire que tu devrais vraiment passer à mercurial." (et m'irrite un peu) Tu veux un cours gratos dans mon nouvelle appartement ? -- Pierre-Yves ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user
Re: [Soya-user] soya svn not compiling on Archlinux anymore
Ok, I did some hacks and it seems that I've been successful in compiling.. did a couple of tests from the tutorial and everything seems to work good. I'll try to reiterate what I did to sucess: > svn co svn://svn.gna.org/svn/soya/trunk soya > cd soya/soya Now, reading README suggests me to run: > python2 setup.py build The above command fails big time: > OSError: [Errno 2] No such file or directory: 'soya._soya.pyx' Ok.. looking into the sources... the most similar one seems _soya.pyx.. so: > cp _soya.pyx soya._soya.pyx Now, run again "python2 setup.py build" which nows fails with: > ./definitions/model/shader.pxd:8:20: C method '_activate' is declared but not defined > ./definitions/model/shader.pxd:9:22: C method '_inactivate' is declared but not defined > ./definitions/model/shader.pxd:10:29: C method '_set_env_parameter' is declared but not defined Then I studied soya._soya.pyx and found out that the include "shader/shader.pyx" is commented out... WTF? Uncommenting include "shader/shader.pyx" in soya._soya.pyx But.. > soya._soya.pyx:86:0: 'shader/shader.pyx' not found Right, it's models/shader.pyx... changing include "shader/shader.pyx" to include "models/shader.pyx" Ok, now run again "python2 setup.py build" which nows fails with: In file included from /usr/include/ode/ode.h:30:0, from ode_check.h:10, from soya._soya.c:282: /usr/include/ode/common.h:111:2: error: #error You must #define dSINGLE or dDOUBLE Ok.. modifying now soya._soya.c so that right before #include "ode_check.h" there is a #define dSINGLE Then, soya compile, installs and works just fine.. Wow.. this has been painful. Hope this helps, Fabio ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user
Re: [Soya-user] soya svn not compiling on Archlinux anymore
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 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
Re: [Soya-user] soya svn not compiling on Archlinux anymore
[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
Re: [Soya-user] soya svn not compiling on Archlinux anymore
Hi, On Wed, May 9, 2012 at 1:08 PM, Fabio Varesano wrote: > I need your help getting Soya svn to compile on Archlinux. > > I downloaded soya from: > svn co svn://svn.gna.org/svn/soya/trunk soya > > And it fails with: >> >> [fabio@gamma soya]$ python2 setup.py build >> Pyrex found - compilation enabled Remove pyrex and install cython. Does it fixes the issue ? Else I'll test soon on my arch box. Thank for reporting it. -- G. ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user
[Soya-user] soya svn not compiling on Archlinux anymore
Hi guys, I need your help getting Soya svn to compile on Archlinux. I downloaded soya from: svn co svn://svn.gna.org/svn/soya/trunk soya And it fails with: [fabio@gamma soya]$ python2 setup.py build Pyrex found - compilation enabled BUILDING True Sound support (with OpenAL) enabled... running build running build_py running build_ext pyrexc soya._soya.pyx --> soya._soya.c /home/fabio/Programs/soya/soya-svn-201205/soya/soya/definitions/model/shader.pxd:8:20: C method '_activate' is declared but not defined /home/fabio/Programs/soya/soya-svn-201205/soya/soya/definitions/model/shader.pxd:9:22: C method '_inactivate' is declared but not defined /home/fabio/Programs/soya/soya-svn-201205/soya/soya/definitions/model/shader.pxd:10:29: C method '_set_env_parameter' is declared but not defined /home/fabio/Programs/soya/soya-svn-201205/soya/soya/definitions/model/shader.pxd:11:31: C method '_set_local_parameter' is declared but not defined /home/fabio/Programs/soya/soya-svn-201205/soya/soya/base.pyx:77:26: Warning: 'not None' will become the default in a future version of Pyrex. Use 'or None' to allow passing None. building 'soya._soya' extension 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 Pyrex compilation. error: command 'gcc' failed with exit status 1 Any help appreciated. Thanks, Fabio ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user