Changes between Version 3 and Version 4 of THPEuroPython2012TalkNotes


Ignore:
Timestamp:
Jan 10, 2013, 2:15:16 PM (11 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • THPEuroPython2012TalkNotes

    v3 v4  
    99
    1010== !PySide @ Android ==
     11
     12=== Intro ===
    1113Based on 3 projects:
    1214* Python4Android - takes care of the Python interpreter
     
    1820''MartiK: As !PySide currently (January 2013) doesn't support Qt 5 at all but !PyQt does, using !PyQt might be needed for using Qt 5 on Android devices.''
    1921
     22First build Python4Android for you host system - it is used for compiling PySide (you have to cross-compile PySide for Android).
    2023
     24Then there is a small C++ project called [https://github.com/thp/pyside-launcher-android PySide Launcher] - it invokes the Python interpreter from a C++ application. Using it you can use the Necessitas IDE and deploy directly to the device.
     25
     26The PySide launcher initializes the interpreter, passes it the command-line arguments and runs the main.py file from a folder on the Android ''sdcard'' folder.
     27
     28The result looks from outside like a C++ application, but what it really does is that it calls the Python interpreter, the Python interpreter then calls PySide and PySide calls the Qt APIs so you can have a Qt application.
     29
     30=== Necessitas SDK ===
     31The Necessitas SDK can be downloaded from here and takes up about 3.5 GB. It contains Android NDK, Android SDK, Qt Creator, Qt compiled for desktop, Qt compiled for Android - basically all in one package.