Reply
Thread Tools
Posts: 143 | Thanked: 99 times | Joined on Jun 2009 @ Houston
#21
Originally Posted by Diph View Post
You have added CONFIG+=mobility and MOBILITY+=location etc. to pro-file?

Nokia SDK comes with QtMobility but the version in SDK differs to the version in the phone. You can get new version of MADDE and use it in QtCreator (Options -> Qt4 -> Add new version -> MADDE_PATH/0.6.72/targets/fremantle-pr12/bin/qmake).
dumb me, I was trying to compile for the simulator, which doesn't have mobility installed. Anyway, now that I am compiling directly for the N900, I just can't run my apps. They build fine but when i try to run then I get:

Code:
error while loading shared libraries: libQtMedia.so.1: cannot open shared object file: No such file or directory
which of course means I probably don't have qtMobility installed or something of that sort. So, the question now is: Should I install Mobility from devel or from tools?
Or maybe just install qt-mobility-examples?

Thanks
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#22
Mobility libraries are in device's built-in repositories. No need to enable devel or tools.
 
Posts: 143 | Thanked: 99 times | Joined on Jun 2009 @ Houston
#23
Originally Posted by Diph View Post
Mobility libraries are in device's built-in repositories. No need to enable devel or tools.
So, any idea why my app doesn't run? Why can't it find libQtMedia.so.1 on the device?
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#24
Originally Posted by tpaixao View Post
So, any idea why my app doesn't run? Why can't it find libQtMedia.so.1 on the device?
Perhaps you need to install the package that contains the library?

It's usually the way to do things...
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#25
apt-get install libqtm-multimedia
 

The Following User Says Thank You to Diph For This Useful Post:
Posts: 143 | Thanked: 99 times | Joined on Jun 2009 @ Houston
#26
Thanks a lot, guys. I got confused with all the contradictory information about qtmobility out there.

Still, I get a symbol lookup error, when I try to run the application:

Code:
 undefined symbol: _ZN10QtMobility12QVideoWidgetC1EP7QWidget
weird...what am I wrong?
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#27
I think the SDK uses older libraries than in the phone. You can try to install MADDE as I said earlier.
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#28
Tried example which uses mobility - multimedia and it worked...
 
Posts: 3 | Thanked: 0 times | Joined on May 2010
#29
Despite Qt Mobility 1.0.0 version is released, it seems, that it is still changing even in it's interface usable parts. For example: in qt docs for contacts API "progress" signal is present for class QContactFetchRequest, but in libraries for PR1.2 (libqtm-*), and in MADDE 0.6.72 there is no such signal, and instead "resultsAvailable" signal is present with different signature. And I have a question for those, who know: I want to enumerate all contacts in my N900 (using "maemo5" contact manager), but that manager returns me not all contacts (I'm not using any filter), but only those with skype information and some of them are even without display lable ("No name" is returned). Total count of returned QContact objects: 10 (real number of contacts is about 30-40). At the same time Qt mobility examples (if I install them onto my n900 with PR1.2) work perfectly (phonebook example) and shows all contacts (in wrong encoding, but that is not the point). So I can't get what I'm doing wrong... My appilcation is run under mad developer. Could it be a limitation of mad developer itself for any deploying application under development?
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#30
Originally Posted by theorlangur View Post
Despite Qt Mobility 1.0.0 version is released, it seems, that it is still changing even in it's interface usable parts. For example: in qt docs for contacts API "progress" signal is present for class QContactFetchRequest, but in libraries for PR1.2 (libqtm-*), and in MADDE 0.6.72 there is no such signal, and instead "resultsAvailable" signal is present with different signature.
Sorry for the late reply. It seems that you are using the documentation for the technical preview instead of the 1.0 documentation.



Originally Posted by theorlangur View Post
And I have a question for those, who know: I want to enumerate all contacts in my N900 (using "maemo5" contact manager), but that manager returns me not all contacts (I'm not using any filter), but only those with skype information and some of them are even without display lable ("No name" is returned). Total count of returned QContact objects: 10 (real number of contacts is about 30-40). At the same time Qt mobility examples (if I install them onto my n900 with PR1.2) work perfectly (phonebook example) and shows all contacts (in wrong encoding, but that is not the point). So I can't get what I'm doing wrong... My appilcation is run under mad developer. Could it be a limitation of mad developer itself for any deploying application under development?
ok...did I understand it right that the difference is that if you start the app on device it behaves differently that starting it from the SDK?

Daniel
 

The Following User Says Thank You to danielwilms For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 18:08.