basic installation on ubuntu 13.10

79 views
Skip to first unread message

solab solab

unread,
Dec 21, 2013, 7:24:37 AM12/21/13
to python-...@googlegroups.com
Hi
After routine update and some kivy package upgrade my previous working distribuite is not working any more.

I started the installation of python-for android from scratch:

1) git clone https://github.com/kivy/python-for-android.git

2) Setted the env
export ANDROIDSDK="/opt/android-sdk-linux"
export ANDROIDNDK="/opt/android-ndk-r8c"
export ANDROIDNDKVER=r8c
export ANDROIDAPI=14
export PATH=$ANDROIDNDK:$ANDROIDSDK/tools:$PATH


and run
3) ./distribute.sh -m 'kivy'

==TAIL OF ERROR LOG ===

libpython2.7.a(posixmodule.o): In function `posix_tempnam':
/opt/python-for-android/build/hostpython/Python-2.7.2/./Modules/posixmodule.c:7317: warning: the use of `tempnam' is dangerous, better use `mkstemp'
libpython2.7.a(zlibmodule.o): In function `PyZlib_uncopy':
/opt/python-for-android/build/hostpython/Python-2.7.2/./Modules/zlibmodule.c:744: undefined reference to `inflateCopy'
collect2: error: ld returned 1 exit status
make: *** [python] Error 1

I think is a python problem but maybe somebody has seen before.

Some hints ?
Some hints how to fix.

Gio


solab solab

unread,
Dec 21, 2013, 8:13:56 AM12/21/13
to python-...@googlegroups.com
I found the problem:

sudo apt-get remove  zlib1g-dev

BUT
After first successful build i tried with:

./distribute.sh -m 'sqlite3 kivy'

with following errors

Entering in ARM enviromnent
Compiler found at /opt/android-ndk-r8e/
toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
python: 1: python: Syntax error: word unexpected (expecting ")")

Somebody knows why ?
Gio

Ben Rousch

unread,
Dec 21, 2013, 11:00:10 AM12/21/13
to python-...@googlegroups.com

Your environment has NDK r8c but your log mentions NDK r8e. We do have NDK 9 support also.

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Python For Android.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse python-androi...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .

solab solab

unread,
Dec 22, 2013, 5:18:47 PM12/22/13
to python-...@googlegroups.com
HI
Yes true , that was the reason
Thanks gio
Reply all
Reply to author
Forward
0 new messages