Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79395 > unrolled thread

Re: Problem with Android Build

Started byCyd Haselton <chaselton@gmail.com>
First post2014-10-21 13:12 -0500
Last post2014-10-21 13:12 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Problem with Android Build Cyd Haselton <chaselton@gmail.com> - 2014-10-21 13:12 -0500

#79395 — Re: Problem with Android Build

FromCyd Haselton <chaselton@gmail.com>
Date2014-10-21 13:12 -0500
SubjectRe: Problem with Android Build
Message-ID<mailman.15042.1413915994.18130.python-list@python.org>
On Tue, Oct 21, 2014 at 12:36 PM, Chris Angelico <rosuav@gmail.com> wrote:
> On Wed, Oct 22, 2014 at 2:32 AM, Cyd Haselton <chaselton@gmail.com> wrote:
>> Hello,
>> If I have a problem with building Python on an Android device, would
>> this be the list to post it to, or should I post it to python-help or
>> python-dev?
>
> Hi!
>
> Start here. If we can't help, python-dev might be the next place to
> ask, but this is the best first option.
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list

Thanks!

I'm building Python v2.7.8 on my Android device in a fakechroot
environment with GCC 4.8.0 and make fails with the following error

Could not import runpy module

Running the Makefile command (minus the LD_LIBRARY_PATH prepend)
produces the same error, but running the same command minus the -S
returns a
File "..Lib/os.py", line 117, in <module>
raise ImportError, 'no os specific module found'

I've configured with
./configure --prefix=/usr/python --build=arm-linux-androideabi
--host=arm-linux-androideabi --target=arm-linux-androideabi
--enable-shared
and
./configure --prefix=/usr/python
with the same results.

The two post-configure makefile edits I've added are:
LDFLAGS=    -Wl,--allow-shlib-undefined
which allows make to continue past an 'undefined reference to sincos' and
RUNSHARED=  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/Python/src
which prevents the fakechroot environment from breaking

I've also commented out the initpwd references in config.c...as
Android doesn't do passwords per se.

Any help would be appreciated!

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web