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! :) |
| 257 | Open 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 | |
| 262 | 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. |
| 263 | |
| 264 | Next 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 | |
| 268 | So 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 | |
| 270 | This guide should enable anyone get as far as I go -t and hopefully get far past the current roadblock! :) |
| 271 | |
| 272 | Any help with finding out how to fix the crash would be much appreciated! :) |