close
Warning:
AdminModule failed with TracError: Unable to instantiate component <class 'trac.ticket.admin.ComponentAdminPanel'> (super(type, obj): obj must be an instance or subtype of type)
- Timestamp:
-
Nov 6, 2014, 1:05:31 AM (11 years ago)
- Author:
-
Martin Kolman
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v16
|
v17
|
|
| 225 | 225 | ==== Deploying Python 3 & !PyOtherSide to the Android device ==== |
| 226 | 226 | |
| | 227 | Download the pre-prepared tarball with Python 3 and !PyOtherSide: |
| | 228 | |
| | 229 | {{{ |
| | 230 | wget ... |
| | 231 | }}} |
| | 232 | |
| | 233 | Then unpack it: |
| | 234 | |
| | 235 | {{{ |
| | 236 | tar xvf ... |
| | 237 | }}} |
| | 238 | |
| | 239 | And push the complete ''poside'' directory directly to the ''/data'' directory on your Android device: |
| | 240 | |
| | 241 | {{{ |
| | 242 | adb push ... |
| | 243 | }}} |
| | 244 | |
| | 245 | This 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 | |
| 227 | 247 | ==== Deploying & running a hello world application ==== |
| | 248 | |
| | 249 | Next download the hello world project tarball and unpack it: |
| | 250 | |
| | 251 | {{{ |
| | 252 | wget ... |
| | 253 | tar xvf ... |
| | 254 | }}} |
| | 255 | |
| | 256 | It 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 | |
| | 258 | Now 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 | |
| | 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! :) |