[Solved] QT Creator and BlackBerry 10 NDK

  • I installed BlackBerry NDK including IDE and downloaded the SDK. Now i already set up Qt-Creator 2.8.1, 2.8.0, 2.6.2... In every version there is another problem with the build settings. The most progress was with 2.6.2 and manually setting up the BB10 integration.

    BB10 NDK Version: 10.1 for Target armv7le-v7

    Creator is always started with bbnk-env.bat called before.


    Compiler set to GCC with custom-arm-linux-generic-elf-32bit as proposed by https://developer.blackberry.com/native/documentation/core/qt_porting_tools.html (I do have a second compiler set to unix instead of linux)

    QT-Version provided by Blackberry NDK, Qt 4.8.5 within BBNDK\host_10_1_0_238\win32\x86\usr\bin\qmake.exe.

    Devices: BBZ10 is connected and accessible. QTCreator successfully connects and can use the debugToken.

    Now the problem is within the Kits: Created a kit for BBZ10, having the bbZ10 Device, bbndk\target_10_1_0_4633\qnx6\armle-v7 as sysroot, compiler (set for linux), gdb to ntoarm-gdb.exe, QT-Version to configured 4.8.5. I can now try any mkspec it always gives me the error (translated from german)

    @ No mkspec found for given QT Version@

    Für diese QT Version wurde keine mkspec gefunden I think the mkspecs are set to compile to unix-target, while the 4.5qt supplied with the sdk requires to be linux target (where in reality target is QNX)

    Somehow i can compile with this version, but first i am not sure if this creates a correct executable, even more i cannot deploy the executable, since QT-Creator does not create the bar-descriptor.xml file...


    Using the same setup as in 2.6 (after having 2.6 QT Version configured) i am able to get to the same error. Using the "new" configuration system under "BlackBerry" page in settings i cannot correctly set up NDK Path. Will always tell me (translated from german)

    @ Following problems were encountered during BB10 configuration:

        No QT-Version found
        No GCC compiler found
        No GDB Debugger for BB10 Comiler found
        No GDB Debugger for BB10 Simulator found@

    Has anyone successfully configured bb10 ndk to use with qt-creator (2.6/2.8.1) and encountered similar trouble? How can i solve this issue?

  • Solved
    After 24 hours trying, installing, reinstalling, editing, crying... I reinstalled complete NDK and QtCreator 2.8 and edited bbndk-env_10_1_0_4633.bat.

    I removed every Variable from batch file and set it to corresponding values, e.g. replace every (PERCENT)BASE_DIR(PERCENT) with your acutal base-dir (i.e. D:\bbndk).
    For conveniance usage i craeted another batchfile, calling the bbndk-env batch and starting qt-creator.

    Set Compiler, Qt-Version, Kits in Creator-Settings as described in https://developer.blackberry.com/native/documentation/core/qt_porting_tools.html

    Happy hacking

    PS: Sry for the percent, but the percent-signs fup the post
    PPS: Keep mkspecs line under Kits-tab empty

  • Moderators

    NetZwerg: Please consider to file a bug report so that the Blackberry guys can improve this!

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.