> Sorry, I haven't written up instructions on compiling Python yet. It sounds
> like you're basically on the right path. Comments below:
> On Thu, Jun 11, 2009 at 4:20 AM, gasolin <gaso...@gmail.com> wrote:
> > In my first try I run the build.py and it said src/Parser/hostpgen is
> > not there.
> > So I look athttp://www.damonkohler.com/2008/12/python-on-android.html
> > and do the following to compile python as hostpython
> > $ .configure
> > $ make
> > $ cp python hostpython
> > $ cp Parser/pgen Parser/hostpgen
> > $ make distclean
> Download the Python 2.6 source and do that in the clean source tree. Then,
> copy hostpython and hostpgen into the clean Python source tree from ASE. By
> clean, I mean without modification (no configure, no make clean, etc.).
> > Then I use following script to generate new make file from .configure
> > $ CROSS_COMPILE=yes CXX=ag++ CC=agcc AR=arm-eabi-ar \
> > RANLIB=arm-eabi-ranlib LD=arm-eabi-ld AS=arm-eabi-as \
> > STRIP=arm-eabi-strip ./configure --host=linux --build=arm-linux --
> > prefix=/data
> Don't do that. The configure script has already been run and the generate
> Makefile has been modified. Just run build.py.
> > Now build.py works but the compile result has some error.
> > I tried to revert MakeFile and others in src to the svn checkout
> > version, then run build.py.
> > the compile result still has some error.
> > The question is: Should I get clean 2.6.2 source from python site,
> > compile it, then copy python/pgen to hostpython/hostpgen in ASE/python/
> > src to make the process work?
> Yep. That should work. Just revert the Python source from ASE to it's
> original state and try again.
> > regards
> --http://www.damonkohler.com/