Revision: 5853 http://sourceforge.net/p/smartbody/code/5853 Author: fastict Date: 2014-09-19 05:15:40 +0000 (Fri, 19 Sep 2014) Log Message: ----------- branch - android - newly compiled python for android ndk. Updated to Python 2.7
platform: Ubuntu 13.04 Android NDK r10 Steps documented here: https://confluence.ict.usc.edu/display/VHTK/Building+the+Toolkit#BuildingtheToolkit-3rdPartyInstructions ------- 9. Python 2.7.2 tar xf Python-2.7.2.tar.bz2 mkdir python-build mv Python-2.7.2 python-build cd python-build/Python-2.7.2 wget https://bitbucket.org/gabomdq/ignifuga/raw/tip/tools/patches/python.android.diff patch -p0 < python.android.diff cd .. (current dir: python-build) download build/modules distribution (internally maintained) unzip python-modules.zip In Python-2.7.2/Modules/_multiprocessing/multiprocessing.c, two changes are required line 125, change from: *CMSG_DATA(cmsg) = fd; to: *(int*)CMSG_DATA(cmsg) = fd; line 168, change from: fd = *CMSG_DATA(cmsg); to: fd = *(int*)CMSG_DATA(cmsg); In Python-2.7.2/Modules/_io/fileio.c, add to the end of the file: static PyMethodDef module_methods[] = { {NULL, NULL} }; PyMODINIT_FUNC init_fileio(void) { PyObject *m; /* a module object */ m = Py_InitModule3("_fileio", module_methods, "Fast implementation of io.FileIO."); if (m == NULL) return; if (PyType_Ready(&PyFileIO_Type) < 0) return; Py_INCREF(&PyFileIO_Type); PyModule_AddObject(m, "_FileIO", (PyObject *) &PyFileIO_Type); } run ndk-build from the NDK_ROOT cd jni /var/chroot/home/fast/Desktop/installers/android/android-ndk-r10/ndk-build copy ./obj/local/armeabi/libpython2.7.a to /android/lib Revision Links: -------------- http://sourceforge.net/p/smartbody/code/10 http://sourceforge.net/p/smartbody/code/10 Added Paths: ----------- branches/fast/smartbody-toolkit-5542/android/lib/libpython2.7.a Removed Paths: ------------- branches/fast/smartbody-toolkit-5542/android/lib/libpython2.6.a This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk _______________________________________________ Smartbody-svn mailing list Smartbody-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/smartbody-svn