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


Groups > comp.lang.python > #79395

Re: Problem with Android Build

References <CAHu5PrZtMSEKPi7JvK7Jf4ENT8hXeX1vQQwH=3cuXtL6Ygmq8Q@mail.gmail.com> <CAPTjJmoozA4n50wTvfmZP662MJEwfvH+4mDdqdaZEmqnvF+brw@mail.gmail.com>
Date 2014-10-21 13:12 -0500
Subject Re: Problem with Android Build
From Cyd Haselton <chaselton@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.15042.1413915994.18130.python-list@python.org> (permalink)

Show all headers | View raw


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!

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web