Changes between Version 25 and Version 26 of BB10


Ignore:
Timestamp:
Jan 9, 2013, 1:33:08 PM (11 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BB10

    v25 v26  
    4343You need to either run this in your shell (or put it in a script ''source'' it to your shell) before issuing the ''configure'' commands for Shiboken & !PySide.
    4444
     45===== Using on-device Qt =====
     46If 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{{{
     48source <BB10NDK PATH>/bbndk-env.sh
     49}}}
     50As 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
     52Next modify the os.environe statements in ''blackberry-py/bbpy/__init__.py'' like this:
     53{{{
     54os.environ['LD_LIBRARY_PATH'] = '/usr/lib/qt4/lib:%s' % os.path.join(BBPYPATH, 'lib')
     55os.environ['QT_PLUGIN_PATH'] = '/usr/lib/qt4/plugins'
     56os.environ['QML_IMPORT_PATH'] = '/usr/lib/qt4/imports'
     57}}}
     58This tells bbpy too look for the Qt libraries on device.
     59
     60Then 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
    4562==== !PySide ====
    4663