Ok here's a quick guide to building from Trunk constructed on a fairly vanilla 
Ubuntu system.  I of course recommend Gentoo for development but some people 
aren't so lucky to have a Gentoo box w/ accelerated video card installed.


First - don't install Pyrex.  Even if you have a package for 0.9.5.1a listed.
ANY older version will not work (bugs have been fixed), plus there is at least 
one additional patch needed to get the latest version running (in addition to 
the hacks I've been able to make to our code to get around bugs)

Start by installing the following packages:
 subversion
 python-dev
 freeglut3-dev
 libglut3-dev
 libglew-dev
 libopenal-dev
 libalut-dev
 libspeex-dev
 g++            (this is for building ODE, below)

You'll need to get ODE 0.8 installed manually, Ubuntu doesn't seem to offer 
a recent-enough version and I'm willing to bet Debian/etc doesn't either:
 Download 0.8 source from http://www.ode.org/ (save to disk)
 From terminal (don't type the #) :
 # unzip Desktop/ode-src-0.8.zip
 # cd ode-0.8
 # ./configure
 Should have: "Use double precision: no" (slow, not used for games)

 # make
 # make install 

 Since this is not a package it will install to /usr/local - for this you'll 
 need to add a line to /etc/ld.so.conf so PySoy can find libode:
 # sudo nano /etc/ld.so.conf
  Add "/usr/local/lib" on the last line then control-x to save
 # sudo ldconfig

Now from a terminal (don't type the #):
 # cd
 # svn --username <YourName> co http://svn.pysoy.org/branches/pyrex-soy
 # cd pyrex-soy
 # python setup.py build
 (if it goes well)
 # sudo python setup.py install

You should now have the patched version of Pyrex installed.

Now for Pysoy (still in the terminal):
 # cd
 # svn --username <YourName> co http://svn.pysoy.org/trunk/pysoy
 # cd pysoy
 # python setup.py build
 # cd build
 # ln -s lib* soy
 # nano soy/__init__.py

Lastly, add the following lines to __init__.py (these are temporary only):

from _core import *
import _imports
import widgets

(control-x to save)

Run "python" next and "import soy", you should have Pysoy running.

To update PySoy (for new changes):
 # cd ~/pysoy
 # svn update
 # python setup.py build

If you make changes you want to commit AFTER you've tested it:
 # cd ~/pysoy
 # svn commit
 (edit your commit log and save/quit with whatever editor you use)


This should work regardless of wether or not you have accelerated video, 
however, you'll want to get that working on your box ASAP since very soon the 
mesh code will be in and Pysoy will run VERY slow without it.

_______________________________________________
PySoy-Dev mailing list
[EMAIL PROTECTED]
http://www.pysoy.org/mailman/listinfo/pysoy-dev

Reply via email to