10-11-2012 11:26 PM
PlayBook with firmware 2.1.0.1032 failed to start Qt application with the error :
ldd:FATAL: Could not load library libblackberry.so
Qt was compiled under Windows 7x64 machine using guide
http://qt-project.org/wiki/Building-Qt4-for-Blackb
also, i was tring precompiled Qt by bryan99 from here
but result is the same: ldd:FATAL: Could not load library libblackberry.so
Can anybody make it clear what happens ?
Thank you
Solved! Go to Solution.
10-12-2012 07:02 AM
Are you using a .pro file to build you app?
I know I had issues with rpath in qmake:
http://talk.maemo.org/showthread.php?t=85626
do a clean rebuild after you make your changes.
10-12-2012 07:34 AM
rashm2k wrote:Are you using a .pro file to build you app?
I know I had issues with rpath in qmake:
http://talk.maemo.org/showthread.php?t=85626
do a clean rebuild after you make your changes.
Thank you for replay, but seems that reason is something else, because libblackberry.so is precompiled and just only loads to device than the app starts. Qmake does not create any influence to libblackberry.so
10-12-2012 08:00 AM - edited 10-12-2012 08:00 AM
More details please.
What IDE/method are you using to deploy, momentics or Qt-creator?
Lets see more of the log?
Cheers,
Jon
10-12-2012 09:22 AM - edited 10-12-2012 09:24 AM
jheron wrote:More details please.
What IDE/method are you using to deploy, momentics or Qt-creator?
Lets see more of the log?
Cheers,
Jon
Hello jheron
I use latest version QNX® Momentics IDE for BlackBerry® Native SDK for Tablet OS Version: 2.1.0
Build id: 201206041807
I launch the app within NDK as Release Build with arguments "-platform blackberry". But in both cases with arguments or not i receive in console only one message
<terminated> test2(1) [BlackBerry Tablet OS C/C++ Application] test2 on 169.254.0.1 ldd:FATAL: Could not load library libblackberry.so
The library libblackberry.so exists and if I tried to delete it there was another error message
10-12-2012 10:12 AM
Clearly ldd can't find the library - thats a fact.
There are two ways to resolve this:
- Copy the libs to the global lib folder on your device.
- Or you need to set the rpath variable when compiling application.
10-12-2012 11:16 AM
In Run/Debug configuration on Environment tab add LD_LIBRARY_PATH=app/native/lib:app/native/lib/plat
And make sure you deploy libblackberry.so i.e. in bar-descriptor.xml you have something like:
<asset path="path-to-your-qt-repo/stage/nto/armle-v7/usr/
10-12-2012 12:18 PM
Thank you comrades !
I found my mistake : libblackberry.so must not be added to the Linker in the project settings. After I had deleted it from my Project->propereties- >C/C++ Build->Settings->QCC Linker->Librares all works fine. ![]()