The Blackberry Playbook does not includes the Qt libraries, so you need to package them to your application.
The current Qt Creator (2.6.0) deploy mechanism does not allows to do it.
If you ran into
- ldd:FATAL: Could not load library libQtGui.so.4
that means the Qt libraries were not deployed with your application.
To be able to create packages containing the Qt libraries you need to do the following:
Turn off the shadow building or move your bar-descriptor.xml by hand to the shadow build folder.
Add the following snipplet to your pro file:
Modify the debug token location!
- package.target = $${TARGET}.bar
- package.depends = $$TARGET
- package.commands = blackberry-nativepackager \
- -devMode -debugToken /home/mm/Dokumentumok/blackberry/debug_token.bar \
- -package $${TARGET}.bar -arg -platform -arg blackberry \
- bar-descriptor.xml $$TARGET \
- -e $$[QT_INSTALL_LIBS]/libQtCore.so.4 lib/libQtCore.so.4 \
- -e $$[QT_INSTALL_LIBS]/libQtGui.so.4 lib/libQtGui.so.4 \
- -e $$[QT_INSTALL_LIBS]/libQtOpenGL.so.4 lib/libQtOpenGL.so.4 \
- -e $$[QT_INSTALL_LIBS]/libQtNetwork.so.4 lib/libQtNetwork.so.4 \
- -e $$[QT_INSTALL_PLUGINS]/platforms/libblackberry.so plugins/platforms/libblackberry.so
Modify your project’s Run settings (sidebar -> Projects, and select the Run under the project):
Remove the “Create packages” step
Add a new deploy step with the Add Deploy step: – Choose custom process step. – Command: make – Arguments: [your target app name].bar
(move it above the Deploy packages step)
Hit run…
Wait…
And be happy :)
Unfortunatelly this method packs the used Qt libraries to the bar file, which causing some overhead, but I have not been able to figure ut better method.

