10-15-2012 09:24 PM
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.
11-29-2012 12:08 PM
11-29-2012 12:42 PM - edited 11-29-2012 12:44 PM
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-Communit
11-29-2012 12:46 PM
You must link with QtCore library (according to my experience)
11-30-2012 05:46 AM
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...
11-30-2012 08:29 AM
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"/>
11-30-2012 01:00 PM
Thanks a lot, that's what was missing ![]()
12-07-2012 11:05 AM
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.
12-07-2012 11:13 AM
Ssh to the device and do
ls /usr/lib/qt4/lib
is the library there? I believe it is but just sanity test
12-07-2012 11:56 AM