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

Web and WebWorks Development

Reply
Developer
dennisritchie
Posts: 78
Registered: ‎01-14-2013
My Device: Games
My Carrier: Not yet
Accepted Solution

[Deploy Webworks App into device]

Hi friends,

I have developed webworks application and create a private plugin by QNX Momentics IDE.

I could config to run the app on Dev Alpha Simulator BB10_1_X.

But when I deploy on device Z10, and run, an error occurred:

 

Require Error can't find /usr/lib/webplatform/plugins/jnext/lib*Jnext.so.

 

Please help me. If you need more info, please comment here.

 

Thank you so much.

 

Dennis.

 

Please use plain text.
Developer
WebCreep
Posts: 236
Registered: ‎07-27-2012
My Device: BlaclBerry PlayBook 16gb, BlackBerry dev alpha
My Carrier: Airtel

Re: [Deploy Webworks App into device]

if you get the problem then use DBPB to deploy.

Please use plain text.
Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: [Deploy Webworks App into device]

This is an interesting Q as one of the threads I'm helping on has the same issue

 

I'm gonna kick this one up to BUG as this is the second time I've heard of it in two days

 

One thing I will ask - as  its already been asked - can you try this please..

 

Open NDK

Right Click on your extension

Build Configurations -> Build Selected

Cllick on Simulator-Debug

 

Build it

 

I'm soz about this - the next bit is confusing

 

In your ext directory you have all the code

 

See the one that say's 'device'? Add a new directory called 'simulator'

 

Stick the .so in there and try again

 

To explain a bit the device folder has ARM CPU instructions

 

The simulator build has X86

 

The sim only works on x86 and device only works on ARM

 

Gomme some feedback - I'm gonna get this sorted for us all ASAP (phone time)




Click the like button if you find my posts useful!
Please use plain text.
Developer
dennisritchie
Posts: 78
Registered: ‎01-14-2013
My Device: Games
My Carrier: Not yet

Re: [Deploy Webworks App into device]

Dear friends,

Thank for your help. I am grateful about. By your help, I got a solution for this problem.

 

The problem relates to "link or dependency" of *.so (shared object) or excutable file in UNIX-Like. I think BB10 filesystem is SYSTEM-V , a type of UNIX systemfile.

 


With simulator I link to a libbrary EX: libbtapi, I declared for "Simulator-Debug". But when I built for device, I did not, this is problem. Messade error that BB10 gave me, it was wrong message. I declared a dependent on "libbtapi" for "Device-Release". Everything was OK.

 

By the way.

Thank for all.

Thank you.

Dennis Ritchie.

Please use plain text.
Developer
dennisritchie
Posts: 78
Registered: ‎01-14-2013
My Device: Games
My Carrier: Not yet

Re: [Deploy Webworks App into device]

Dear friends,

If anyone take this problem "Require Error can't find /usr/lib/webplatform/plugins/jnext/lib*Jnext.so.", please add here. I think I can help you.

Dennis Ritchie.

Please use plain text.
Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: [Deploy Webworks App into device]

Thanks Dennis

 

That is most helpful and answers a Q someone else has

 

Have a couple of likes (I get to give 2)




Click the like button if you find my posts useful!
Please use plain text.
Developer
ingvar_e
Posts: 551
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700
My Carrier: Movistar, Telenor

Re: [Deploy Webworks App into device]

Thanks Dennis. Been struggling with that one for quite some time trying to get the unzip from githubs to work on the simulator

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-
Please use plain text.
Developer
ingvar_e
Posts: 551
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700
My Carrier: Movistar, Telenor

Re: [Deploy Webworks App into device]

Hmm.

Cant say I understand  the solution. Could you please detail it a bit??

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-
Please use plain text.
Developer
dennisritchie
Posts: 78
Registered: ‎01-14-2013
My Device: Games
My Carrier: Not yet

Re: [Deploy Webworks App into device]

Dear friends,

I shall explain more detail about  "Require Error can't find /usr/lib/webplatform/plugins/jnext/lib*Jnext.so".

Suppose that, You used "bt_device_init" function to interact with bluetooth.
 You MUST declare 1 link to "libbtapi". If not, you will get the problem.
I give you an image to illustrate.

 

https://docs.google.com/file/d/0B3ujO2uhbtQeLW9GMGNUU09pdGc/edit?usp=sharing

 

 

Thank for all.

Dennis Ritchie.

 

Please use plain text.
Developer
BB_shi
Posts: 91
Registered: ‎03-15-2011
My Device: Blackberry 9800
My Carrier: developer

Re: [Deploy Webworks App into device]

I am getting same problem. Posted my question ate below link:

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Require-Error-Can-t-find-usr-lib...

Please Help!!
Please use plain text.