Changes between Version 20 and Version 21 of PyOtherSideForAndroid


Ignore:
Timestamp:
Nov 6, 2014, 2:11:54 AM (8 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PyOtherSideForAndroid

    v20 v21  
    250250
    251251{{{
    252 wget ...
    253 tar xvf ...
     252wget http://www.modrana.org/platforms/android/pyotherside/guide/pyotherside_hello_world_project.tar.gz
    254253}}}
    255254
    256255It 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.
    257256
    258 Now open the project in the !QtCreator provided by the Qt for Android SDK, configure device deployment and press the ''Run'' button and make sure your device with the deployed libs is selected. !QtCreator should do its thing and the application should successfully start on the device, presenting you a simple ''Hello world'' button in the middle of the screen. 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 
    260 Now 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 
    262 So this how & how far I got - any help with finding out how to fix the crash would be much appreciated! :)
     257Open the project file in the !QtCreator provided by the Qt for Android SDK
     258(the main project file is called ''A52.pro''), make sure the android kit with correct architecture for your device is selected, press the ''Run'' button and make sure your device with the deployed libs is selected as the deployment target.
     259
     260!QtCreator should now do its thing and the application should successfully start on the device, presenting you a simple ''Hello world'' button in the middle of the screen.
     261
     262Now 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.
     263
     264Next 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.
     265
     266==== Current status quo ====
     267
     268So this how & how far I got - !PyOtherSide cna be imported in a QtQuick application running on Android, but crashes once the Python element is instantiated.
     269
     270This guide should enable anyone get as far as I go -t and hopefully get far past the current roadblock! :)
     271
     272Any help with finding out how to fix the crash would be much appreciated! :)