close
Warning:
AdminModule failed with TracError: Unable to instantiate component <class 'trac.ticket.admin.ComponentAdminPanel'> (super(type, obj): obj must be an instance or subtype of type)
- Timestamp:
-
Sep 23, 2014, 10:23:18 PM (12 years ago)
- Author:
-
Martin Kolman
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v7
|
v8
|
|
| 30 | 30 | |
| 31 | 31 | ==== Preparing the PyOtherSide project ==== |
| 32 | | Unpack the !PyOtherSide tarball into a directory: |
| | 32 | Unpack the !PyOtherSide tarball and enter the resulting directory: |
| 33 | 33 | {{{ |
| 34 | 34 | tar -xvf pyotherside-1.3.0.tar.gz |
| | 35 | cd pyotherside-1.3.0 |
| 35 | 36 | }}} |
| 36 | 37 | |
| | 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. |
| 37 | 62 | |
| 38 | 63 | === Basic deployment === |