meabsence / python-for-android

Automatically exported from code.google.com/p/python-for-android
Apache License 2.0
0 stars 0 forks source link

Python-2.7.2-android.patch #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have run python2.6.2 in android4.4 MBOX platform successfully
make way:
ndk version:r9d
toolchains: toolchains\arm-linux-androideabi-4.6\prebuilt\linux-x86\bin
python version: 2.6.2
android version:4.4

now I want to run python2.7.2, but I hg clone 
https://code.google.com/p/python-for-android, it's for python2.6.2 for android 
just.

I want a patch:Python-2.7.2-android.patch,In addition, what do I need to pay 
attention?

Original issue reported on code.google.com by chw421...@gmail.com on 9 May 2014 at 10:06

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi anthony....@scala.com:
I dont't get what my want, the process is as follows:
1. hg clone  https://code.google.com/p/android-python27/
2. ndk version: android-ndk-r9d
   export NDK=/mnt/nfsroot/cheng.wang/android-ndk/android-ndk-r9d
   export NDKPLATFORM="$NDK/platforms/android-9/arch-arm"
   export PATH=$PATH:$NDK:$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-  x86/bin
3. cd android-python27/python-build
   a. bash bootstrap.sh
   b. bash build.sh
   (This will be a error,I modify openssl/jni/Application.mk
    NDK_TOOLCHAIN_VERSION=4.4.3 to NDK_TOOLCHAIN_VERSION=4.6)
   c. bash package.sh
4. create python_extras_27.zip python_27.zip
   I unzip them,and put them in android,
   export env and use command:
   python test_python.py
   but, there is a error:
CANNOT LINK EXECUTABLE: could not load library "libpython2.7.so" needed by 
"/usr/com.googlecode.pythonforandroid/files/python/bin/python"; caused by could 
not load library "libpython2.7.so" needed by "libpython2.7.so"; caused by OOPS: 
recursive link to "libpython2.7.so"

  Where is my wrong?

Original comment by chw421...@gmail.com on 12 May 2014 at 9:17

GoogleCodeExporter commented 8 years ago
I have build successful for android-python27, but I don't find any *pyc in 
python_extras_27/python expect android.py and not find any *.so in 
python_27/python/lib/python2.7/lib-dynload also.

I can find these in /data/data/com.android.python27/... and 
/sdcard/com.android.python27/... after install PythonAPK.apk

My compile environment is:
NDK: r5b
SDK: r10
exec sh:
bash bootstrap.sh && build.sh && package.sh

why?
please help me,thank you!

Original comment by chw421...@gmail.com on 13 May 2014 at 3:34