| 38 | Next you need a Python 3 compiled for Android, so you can build !PyOtherSide against it. I have found such Python 3 distribution on the Python 2.6 for Android project website and used it drop in library bundle for compiling !PyOtherSide. |
| 39 | |
| 40 | So download the lib bundle tarball to the Pyotherside folder and unpack it here: |
| 41 | {{{ |
| 42 | wget http://www.modrana.org/platforms/android/pyotherside/guide/python3_android_libs_bundle.tar.gz |
| 43 | tar xvf python3_android_libs_bundle.tar.gz |
| 44 | }}} |
| 45 | |
| 46 | When you are done, there should be a ''libs'' folder in your ''pyotherside-1.3.0 folder''. |
| 47 | |
| 48 | In the next step we need to tell the project to use the Android compiled libraries instead of the system ones, so edit the ''src/src.pro'' file and replace the line reading: |
| 49 | |
| 50 | {{{ |
| 51 | INCLUDEPATH += . ../src |
| 52 | }}} |
| 53 | |
| 54 | With this: |
| 55 | |
| 56 | {{{ |
| 57 | INCLUDEPATH += $$PWD/../libs/python32/build_dependencies/ . ../src |
| 58 | LIBS += -L$$PWD/../libs/python32 -lpython3.2 |
| 59 | }}} |
| 60 | |
| 61 | This tells the project to use our locally available Python 3 compiled for Android instead of the system-wide Python 3 when building !PyOtherSide. |