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
Contributor
Posts: 16
Registered: ‎04-28-2013
My Device: PlayBook
My Carrier: none
Accepted Solution

Can 10.1 NDK be used to build PlayBook Apps?

I have NDK v10.1 installed on my PC and I have successfully build an App that runs on Z10 and Q10.  I want to now port this app to also run on PlayBook, however when I try to run my native app on PlayBook hardware I get the following message:

 

The application you are launching is built against a newer version of the Native SDK (10.1.0.1020) compared to your device version (2.1.0.1526).  Using a newer Native SDK will cause issues when running and debugging your application.  How would you like to proceed?

[Cancel Launch] [Find matching SDK] [Continue]

 

When I try to find a matching SDK, nothing is found.  If I Continue, the PlayBook app doesn't install and run on my PlayBook.

 

Is there any way to use the 10.1 NDK to build apps for the PlayBook?  Or do I need to install NDK v2.1 on my PC and use it for PlayBook development?

 

Is it okay to have 2 versions of the NDK installed on the same PC (v2.1 and 10.1) ?

_______________________________________________________
C++, 3D OpenGL and Game Programming video tutorials:
http://www.MarekKnows.com
Play my free games:
Zing: http://appworld.blackberry.com/webstore/content/27406036
Jewel Thief: http://appworld.blackberry.com/webstore/content/29105889
Developer
Posts: 120
Registered: ‎03-13-2012
My Device: Playbook, Dev Alpha C, Q10, Z10, Z30
My Carrier: T-Mobile

Re: Can 10.1 NDK be used to build PlayBook Apps?

You need to install the 2.1 SDK in order to build for the playbook.

 

What I ended up with is the 10.x IDE with a drop down box towards the top that lets you choose which version of the compiler to use.  And then you can switch back and forth.

 

Also, although you can't use the 10.x to build for the playbook, you can use the 2.1 to build for BB10.  You have to be careful with this as you obviously can't use any 10.x api's when you do it this way.

 

This is the way I've done it.  My biggest problem was with dialog boxes. as they don't allow for all of the options for sizing in 10.x as they did in 2.1.

 

Be sure to test if you go down this route of using 2.1 for 10.x.

 

Naturally, the alternative is to manage 2 different source codes.

Contributor
Posts: 16
Registered: ‎04-28-2013
My Device: PlayBook
My Carrier: none

Re: Can 10.1 NDK be used to build PlayBook Apps?

Did you install the 2.1 NDK into the same directory as the 10.1 NDK?  Or do they have to be in separate directories so that files don't get over written?

_______________________________________________________
C++, 3D OpenGL and Game Programming video tutorials:
http://www.MarekKnows.com
Play my free games:
Zing: http://appworld.blackberry.com/webstore/content/27406036
Jewel Thief: http://appworld.blackberry.com/webstore/content/29105889