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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
Contributor
marcd
Posts: 12
Registered: ‎07-05-2012
My Carrier: nonce
Accepted Solution

Getting PIN with native SDK

Hello all, I'm having a weird issue since I added code to get the user's PIN. When I start my app on the playbook, i get this printed in the console and the app quits :

 

unknown symbol: deviceinfo_get_identifying_details
unknown symbol: deviceinfo_identifying_details_get_pin
unknown symbol: deviceinfo_free_identifying_details
ldd:FATAL: Could not resolve all symbols

 

libbps is linked in, as I use it for other things. I have also added the appropriate permissions in the BAR file by checking the "Device Identifying Information" box.

 

What could be causing this ? Thanks.

 

Please use plain text.
Contributor
bryanh99
Posts: 42
Registered: ‎06-30-2012
My Carrier: T-Mobile

Re: Getting PIN with native SDK

Is this really the error you get when you RUN the app or when you compile the app?

Please use plain text.
Contributor
marcd
Posts: 12
Registered: ‎07-05-2012
My Carrier: nonce

Re: Getting PIN with native SDK

When I RUN the app... that's why I think it's so strange.

Please use plain text.
Contributor
bryanh99
Posts: 42
Registered: ‎06-30-2012
My Carrier: T-Mobile

Re: Getting PIN with native SDK

interesting...... those seem like compile errors.

 

I have code that reads PIN and dont get those errors (using 10.0.4 as 10.0.6 will not run on the PB at all)

 

 

Please use plain text.
Contributor
marcd
Posts: 12
Registered: ‎07-05-2012
My Carrier: nonce

Re: Getting PIN with native SDK

Can you show me the libs you added to the linker ?

Please use plain text.
Contributor
bryanh99
Posts: 42
Registered: ‎06-30-2012
My Carrier: T-Mobile

Re: Getting PIN with native SDK

you will be sad to know I didn't add any libs to the linker.  I do have libs added to the BAR though.  The one that I think matters is "libbb.so.0"

 

 

Please use plain text.
Contributor
marcd
Posts: 12
Registered: ‎07-05-2012
My Carrier: nonce

Re: Getting PIN with native SDK

Correct me if I'm wrong but you are targeting bb10 devices ?

 

I'm targeting playbook using ndk 2.1.0-beta1, and no such file exist (libbb.so)

Please use plain text.
Contributor
bryanh99
Posts: 42
Registered: ‎06-30-2012
My Carrier: T-Mobile

Re: Getting PIN with native SDK

Wellll....

 

You can target the PB with 10.0.4 if you do a little bit of work.  So no, I am not using 2.1.0 but 10.0.4.

 

Bryan

 

Please use plain text.
Contributor
marcd
Posts: 12
Registered: ‎07-05-2012
My Carrier: nonce

Re: Getting PIN with native SDK

Thanks for your replies, I'd love a BB advisor to drop in though

Please use plain text.
BlackBerry Development Advisor
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Carrier: developer

Re: Getting PIN with native SDK

[ Edited ]

(All: please confine comments to Playbook NDK2.  This thread is not about Cascades)

 

ldd error is consistent with missing .so or missing entries in the .so even at runtime.

 

Try statically linking and post any link errors.

 

Stuart

Please use plain text.