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
Visitor
darkwater84
Posts: 1
Registered: ‎10-15-2012
My Device: BB10
My Carrier: Alpha B device

Dev alpha 10, bbm help

Hi, I try to incorporate BBMs in a makefile native application, but when i compile the linker asks by bbplatformbbm, I passed it to the linker list in makefile , but ask me for Qt libraries, can BBMs work without Cascades?

 I added Qt libpath to makefile and the compilation ends but when I try to debug the app crashes.

Please use plain text.
New Contributor
Lolobeebop
Posts: 3
Registered: ‎11-29-2012
My Device: Developer
My Carrier: -

Re: Dev alpha 10, bbm help

Hi, Same issue here. Did anyone manage to find a solution?
Please use plain text.
Developer
borceg
Posts: 670
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Dev alpha 10, bbm help

[ Edited ]

Hmm, bbm in strictly native app (without Qt) seems not possible.
Try with samples but I can't confirm how it works https://github.com/blackberry/Core-Native-Community-Samples

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Dev alpha 10, bbm help

You must link with QtCore library (according to my experience)

Please use plain text.
New Contributor
Lolobeebop
Posts: 3
Registered: ‎11-29-2012
My Device: Developer
My Carrier: -

Re: Dev alpha 10, bbm help

Thanks for your answers.

 

I tried linking with QtCore. At first, I had a link error
 (lib not found). Then I updated the lib path setting to point in the qt directory (${QNX_TARGET}/${CPUVARDIR}/usr/lib/qt4/lib)

 

Now, it compiles, but crash at launch

ldd:FATAL: Could not load library libQtCore.so.4

So I guess I'm missing something else...

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Dev alpha 10, bbm help

Right. Now it cannot be found on the device. To fix this find in your bar-descriptor.xml file following line:

<env var="LD_LIBRARY_PATH" value="app/native/lib"/>

and change it to

<env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>

Please use plain text.
New Contributor
Lolobeebop
Posts: 3
Registered: ‎11-29-2012
My Device: Developer
My Carrier: -

Re: Dev alpha 10, bbm help

Thanks a lot, that's what was missing :smileyhappy:

Please use plain text.
Contributor
JimmyLord
Posts: 17
Registered: ‎07-12-2012
My Device: BB10 Alpha Device
My Carrier: none

Re: Dev alpha 10, bbm help

Hi, I'm having no luck with this and don't know what else to try, other than putting libQtCore.so.4 into my bar file, which is probably a bad idea.

 

I've changed my bar-descriptor as mentioned:

<env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>

but I'm still getting the same runtime error that Lolobeebop was getting:

ldd:FATAL: Could not load library libQtCore.so.4

 

I'm running on a Dev Alpha, so I'm guessing /usr/lib/qt4/lib is a shared lib folder somewhere on the system, but it's still not finding QtCore.  Just to be sure I'm using the right libs, I'm linking to bbmsp and QtCore.  But, given that this is a runtime error, I doubt that matters.

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Dev alpha 10, bbm help

Ssh to the device and do

ls /usr/lib/qt4/lib

is the library there? I believe it is but just sanity test

Please use plain text.
Contributor
JimmyLord
Posts: 17
Registered: ‎07-12-2012
My Device: BB10 Alpha Device
My Carrier: none

Re: Dev alpha 10, bbm help

Sorry, I'm a bit lost on this. I spent the last 20 minutes or so trying to figure out how to SSH into the device. When I try from a cmd windows I get a "Not Owner" message and when I try through putty, I get "No supported authentication methods available" regardless of which username I pick.
Please use plain text.