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
smiley
Posts: 1,523
Registered: ‎07-14-2008
My Device: Z10

Problem installing sample apps to the PB

HI

 

Have NDK 2.1 installed and the lastest PB OS.

 

downloaded the native camera example from the Cascade samples (the native sample) and it compiled ok but when I tried to install it on the PB device it got this error:

 

Deployment Failed: Info: Sending request: Install and Launch
Info: Action: Install and Launch
Info: Debug native: on
Info: File size: 38405
Info: Installing com.example.NativeCamera.testDev_ativeCamerad5e7228d...
Info: Processing 38405 bytes

 

I also have the same problem with the GoodCitizen sample app.

 

Does anyone know why?

Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Device: Blackberry Playbook 32GB

Re: Problem installing sample apps to the PB

Im having similar debugging problems.

:/

Developer
smiley
Posts: 1,523
Registered: ‎07-14-2008
My Device: Z10

Re: Problem installing sample apps to the PB

My problem is trying to install the sample apps to the real device.

 

I have both the signing and debug token keys in place.

 

could it be something wrong with the xml and signing keys?

 

I remembered with Air/Flash apps if I have the author wrong in the xml it will not sign. 

 

There wasn't any error msgs when i did the export in the IDE.  It tried to load and run and then it craps out.

This is very frustrating and i can't even get the samples to run.

Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Device: Blackberry Playbook 32GB

Re: Problem installing sample apps to the PB

I too am trying to debug to a real playbook device but having problems.

Do you get an error message on the playbook when it runs?

 I get error 12 on the playbook and Unable to determine returned PID from QNX


smiley wrote:

My problem is trying to install the sample apps to the real device.

 

I have both the signing and debug token keys in place.

 

could it be something wrong with the xml and signing keys?

 

I remembered with Air/Flash apps if I have the author wrong in the xml it will not sign. 

 

There wasn't any error msgs when i did the export in the IDE.  It tried to load and run and then it craps out.

This is very frustrating and i can't even get the samples to run.


 

BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: Problem installing sample apps to the PB

usr/include/errno.h error 12  is ENOMEM.

 

Is http://supportforums.blackberry.com/t5/Native-Development/trouble-debugging/m-p/1848491#M6335 pertinent?

 

Stuart

Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Device: Blackberry Playbook 32GB

Re: Problem installing sample apps to the PB

Yes, and its still a problem. every couple of debugs I have to:

-Move all my assets folders outside the project folder(and workspace) and remove them from the bar desc

-Clean and recompile whole project

-Move my assets folders back in to the project and add them to the bar desc

-Compile project

-Debug.

 

Only after these steps does it start working again.

I've tried deleting the whole workspace folder and starting the IDE from scratch then moving back my source&headers&assets but problem still persists.

May be a problem with my installation of the IDE so will try reinstall when I get back from hols.

 

 

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

Re: Problem installing sample apps to the PB

smily, do you have anything like 

<platformVersion>2.0.0.7109</platformVersion>

in your bar-descriptro.xml file? probably version mismatch...

Developer
smiley
Posts: 1,523
Registered: ‎07-14-2008
My Device: Z10

Re: Problem installing sample apps to the PB

I upgraded to the 2.1 beta and it solved the problems.  I think the sample apps some requires 2.1 sdk.

BlackBerry Development Advisor
smcveigh
Posts: 668
Registered: ‎11-29-2011
My Device: developer

Re: Problem installing sample apps to the PB

Native Camera sample definitely needs 2.1 or BB10.  There is no camera API on 2.0.