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
Developer
Posts: 1,600
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Compiling apps with NDK2.1 for OS2.0

I have a simple app compiled with NDK2.1 using imglib.  When I deployed to the PB OS2.0 it will not run.

 

Are apps compiled with NDK2.1 work on OS2.0 as long as I do not use 2.1 specific API?

 

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Compiling apps with NDK2.1 for OS2.0

Yes, they should.

Retired
Posts: 60
Registered: ‎05-10-2012
My Device: Blackberry 10 Alpha
My Carrier: none

Re: Compiling apps with NDK2.1 for OS2.0

Hi Smiley, can you provide a little bit more detail on the error you are getting when you run the application? is there an error code or number listed in the playbook notification area?

 

Cheers

Selom

Developer
Posts: 1,600
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: Compiling apps with NDK2.1 for OS2.0

There wasn't any error msg when I run on v2.0.

I think i might be using som 2.1 beta api.

 

I wish the api doc would indicate which OS it supports like the java apis.

BlackBerry Development Advisor
Posts: 15,508
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Compiling apps with NDK2.1 for OS2.0


smiley wrote:

There wasn't any error msg when I run on v2.0.

I think i might be using som 2.1 beta api.

 

I wish the api doc would indicate which OS it supports like the java apis.


Great feedback.  I'll pass this along to our development team.

 

The compatibility model is the same as what was used on previous BlackBerry OSes.  Applications built in version XYZ of the BlackBerry NDK should run on an OS with the same version or higher.  Applications built in a higher version of NDK compared to OS version are not supported. 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 1,600
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: Compiling apps with NDK2.1 for OS2.0

Thanks Mark.  The other problem is that there were no errors when I run the app on OS2.0.  On BBOS Java it would say class xxx not found and quits.

 

Another question.  Will my NDK OS2.1 apps run on BB10 or do i need to recompile with BB10 SDK?

I do not have the BB10 dev unit to test with.

 

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Compiling apps with NDK2.1 for OS2.0

Actually if your app on the device can't find some functions (it was compiled with) LD will complain about missing symbols. Did you check your app log?

Highlighted
BlackBerry Development Advisor
Posts: 15,508
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Compiling apps with NDK2.1 for OS2.0

We're planning to support applications built with the 2.x NDK on BlackBerry 10.  It's not fully there yet with the current BlackBerry 10 Dev Alpha releases, but will be coming soon.  From a developer's point of view, the main change there would be screen resolution.  If you application can adapt to the different screen size you should be good to go.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker