| 45 | ===== Using on-device Qt ===== |
| 46 | If you decide to use the on-device Qt libs (they are in version 4.8.4 and should theoretically be sufficient) don't use the above mentioned tweak and just source your environment from the bbndk-env.sh script: |
| 47 | {{{ |
| 48 | source <BB10NDK PATH>/bbndk-env.sh |
| 49 | }}} |
| 50 | As a result, Shiboken & PySide will compile against the Qt in the NDK target and you don't have to include the Qt libraries in your installation package, making it much smaller. |
| 51 | |
| 52 | Next modify the os.environe statements in ''blackberry-py/bbpy/__init__.py'' like this: |
| 53 | {{{ |
| 54 | os.environ['LD_LIBRARY_PATH'] = '/usr/lib/qt4/lib:%s' % os.path.join(BBPYPATH, 'lib') |
| 55 | os.environ['QT_PLUGIN_PATH'] = '/usr/lib/qt4/plugins' |
| 56 | os.environ['QML_IMPORT_PATH'] = '/usr/lib/qt4/imports' |
| 57 | }}} |
| 58 | This tells bbpy too look for the Qt libraries on device. |
| 59 | |
| 60 | Then remove all 'libQt*.so' files from the ''blackberry-py/lib'' folder for you package as they are no longer needed. This should make your package much smaller. Unfortunately it still results in the same segfault as when bundling the libraries inside the package. |
| 61 | |