标题:Setting up Qt Creator for BlackBerry and QNX
作者:XChinux
日期:2012-12-26 10:17
内容:
Configure Qt Creator for BlackBerry
Enable the QNX plugin by starting Qt Creator the first time, go to Help -> About Plugins … -> Device Support, check the ‘QNX’ entry and restart Qt Creator.Add the Blackberry device as device by going to Tools -> Options… -> Devices. Add a new device of type BlackBerry Device andenter all needed data into the wizard. The debug token should belocated under ~/.rim as well as the private key, or you can generate anew SSH key in the wizard.Add the compiler to Qt Creator: Go to Tools -> Options… -> Build & Run -> Tool Chains. Add a new toolchain of type GCC. Select as compile path the executable $BBNDK/host/linux/x86/usr/bin/qcc and as ABI custom-arm-linux-generic-elf-32bit.

Add the Qt version for the Blackberry device to Qt Creator: Go to Tools -> Options… -> Build & Run > Qt Versions. Add a new Qt version and select the qmake executable from the Qt installation (e.g. /opt/qt-blackberry/bin/qmake for a selfcompiled Qt or$BBNDK/host/linux/x86/usr/bin/qmake for the Qt shipped with the SDK). Don’t forget to also set BlackBerry Native SDK path in this page!Note that the Qt shipped with the SDK needs a little fix first tomake this work. This fix is not needed for selfcompiled Qt versions.The SDKQt is missing the default symlink for the mkspec. To fix this, create the symlink $BBNDK/target/qnx6/usr/share/qt4/mkspecs/default, pointing to$BBNDK/target/qnx6/usr/share/qt4/mkspecs/unsupported/blackberry-armv7le-qcc.Add the target for the Blackberry device to Qt Creator: Go to Tools -> Options… -> Build & Run > Targets. Add a new target (rename it ‘Playbook’ for example) and use BlackBerry Device[/b ..