Changes between Version 7 and Version 8 of PyOtherSideForAndroid


Ignore:
Timestamp:
Sep 23, 2014, 10:23:18 PM (10 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PyOtherSideForAndroid

    v7 v8  
    3030
    3131==== Preparing the PyOtherSide project ====
    32 Unpack the !PyOtherSide tarball into a directory:
     32Unpack the !PyOtherSide tarball and enter the resulting directory:
    3333{{{
    3434tar -xvf pyotherside-1.3.0.tar.gz
     35cd pyotherside-1.3.0
    3536}}}
    3637
     38Next 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
     40So download the lib bundle tarball to the Pyotherside folder and unpack it here:
     41{{{
     42wget http://www.modrana.org/platforms/android/pyotherside/guide/python3_android_libs_bundle.tar.gz
     43tar xvf python3_android_libs_bundle.tar.gz
     44}}}
     45
     46When you are done, there should be a ''libs'' folder in your ''pyotherside-1.3.0 folder''.
     47
     48In 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{{{
     51INCLUDEPATH += . ../src
     52}}}
     53
     54With this:
     55
     56{{{
     57INCLUDEPATH += $$PWD/../libs/python32/build_dependencies/ . ../src
     58LIBS += -L$$PWD/../libs/python32 -lpython3.2
     59}}}
     60
     61This tells the project to use our locally available Python 3 compiled for Android instead of the system-wide Python 3 when building !PyOtherSide.
    3762
    3863=== Basic deployment ===