Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Python compile question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gasolin  
View profile  
 More options Jun 10 2009, 10:20 pm
From: gasolin <gaso...@gmail.com>
Date: Wed, 10 Jun 2009 19:20:55 -0700 (PDT)
Local: Wed, Jun 10 2009 10:20 pm
Subject: Python compile question
In my first try I run the build.py and it said src/Parser/hostpgen is
not there.

So I look at http://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

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

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?

regards


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Damon  
View profile  
 More options Jun 11 2009, 8:25 am
From: Damon <damonkoh...@gmail.com>
Date: Thu, 11 Jun 2009 14:25:34 +0200
Local: Thurs, Jun 11 2009 8:25 am
Subject: Re: Python compile question

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 at http://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/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gasolin  
View profile   Translate to Translated (View Original)
 More options Jun 11 2009, 11:27 am
From: gasolin <gaso...@gmail.com>
Date: Thu, 11 Jun 2009 08:27:18 -0700 (PDT)
Local: Thurs, Jun 11 2009 11:27 am
Subject: Re: Python compile question
Thanks, I have successfully compiled python.zip with your comments :)

On 6月11日, 下午8時25分, Damon <damonkoh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »