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

Reply via email to