Changes between Version 16 and Version 17 of PyOtherSideForAndroid


Ignore:
Timestamp:
Nov 6, 2014, 1:05:31 AM (7 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PyOtherSideForAndroid

    v16 v17  
    225225==== Deploying Python 3 & !PyOtherSide to the Android device ====
    226226
     227Download the pre-prepared tarball with Python 3 and !PyOtherSide:
     228
     229{{{
     230wget ...
     231}}}
     232
     233Then unpack it:
     234
     235{{{
     236tar xvf ...
     237}}}
     238
     239And push the complete ''poside'' directory directly to the ''/data'' directory on your Android device:
     240
     241{{{
     242adb push ...
     243}}}
     244
     245This is where the hello world example will expect it. Also, we can't deploy to the ''/data/sdcard'' directory as it isi usually mounted noexec which breaks the library loading we need to do.
     246
    227247==== Deploying & running a hello world application ====
     248
     249Next download the hello world project tarball and unpack it:
     250
     251{{{
     252wget ...
     253tar xvf ...
     254}}}
     255
     256It is just a normal !QtQuick Controls Android project template modified to load the needed libraries from ''/data/poside'' and with all the needed environmental variables set.
     257
     258Now open the project in the !QtCreator provided by the Qt for Android SDK, configure device deployment and press the ''deploy'' button. !QtCreator should do its thing and the application should successfully start on the device. Now look on the main.qml file in !QtCreator and note that while it has the {{{import io.thp.pyotherside 1.0}}} line, the {{{Python {} }}} line that actually instantiates the Python element provided by !PyOtherSide is commented out.
     259
     260Now uncomment {{{Python {} }}} line and try to deploy the application again. This time the deployment fails and the applications crashes as soon as it is started.
     261
     262So this how & how far I got - any help with finding out how to fix the crash would be much appreciated! :)