Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
Posts: 3
Registered: ‎09-04-2013
My Device: BlackBerry Z10
My Carrier: Vodafone
Accepted Solution

QTCreator and BB10 NDK , QT-Project in QDE - Solved

[ Edited ]



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 10.1.0.4633 armv7le-v7

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

2.6.2:

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...

2.8.1:

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?

As an alternative solution, how can i use a QT-App developed for Android/iOS in QtCreator to be used in QNX Momentics IDE?

 

 

New Contributor
Posts: 3
Registered: ‎09-04-2013
My Device: BlackBerry Z10
My Carrier: Vodafone

Re: QTCreator and BB10 NDK , QT-Project in QDE

[ Edited ]

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 %BASE_DIR% 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

 

Keep mkspecs line under Kits-tab empty

 

Happy hacking

Highlighted
Developer
Posts: 169
Registered: ‎03-25-2011
My Device: Playbook, Z10 L.E.
My Carrier: Vodafone NL

Re: QTCreator and BB10 NDK , QT-Project in QDE

Hi there,

 

I'm having the exact same problems but I'm on a Mac OS X 10.8.4 (Mountain Lion) and I'm using the just releasead QT 5.1.1 with Qt Creator 2.8.1. I'm trying to use the latest Native SDK 10.2 Gold

 

I followed your instructions and the links but I get the similar errors. Once Qt Creators starts I get:

Could not read qmake configuration file /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/default/qmake.conf.

 And the ABI settings of the Compiler (qcc) aways reset. They never remain on custom-arm-generic-elf-32bit.

 

Can anybody help?

Thanks.

Cheers!
New Contributor
Posts: 3
Registered: ‎09-04-2013
My Device: BlackBerry Z10
My Carrier: Vodafone

Re: QTCreator and BB10 NDK , QT-Project in QDE

Did you leave the mkspec - line empty? There should be no mkspec defined within the QT Creator Settings for BB Kit.