Reply
Thread Tools
Posts: 17 | Thanked: 42 times | Joined on Feb 2010
#1
Hi all,

I'm developing some software in Qt for my N900. It compiles and runs fine on my desktop. When I use Qt Creator to run it on my device, I'm given the error message:

error while loading shared libraries: libQtXmlPatterns.so.4: cannot open shared object file: No such file or directory

So apparently I'm missing that library on my N900. A quick dpkg -l | grep libqt shows that libqt4-maemo5-xmlpatterns is there, but no libqt4-xmlpatterns. I'm slightly confused as to what this means... any help?

Stewart
 
Posts: 6 | Thanked: 0 times | Joined on Apr 2010
#2
Hi everyone

I have the same problem. My prog worked great when i compiled it with Qt 4.5.x. Know I switch to Qt 4.6.2 and downloaded libqt4-maemo5-maemo5 on the phone nad receive the same error.

Vipers36
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#3
@StewartHolmes: You have XmlPatterns installed only on the Qt4.6 install, but not on the 4.5 one. It seems you’re linking against 4.5, hence the error when you try to run it. Either link with 4.6, or just install libqt4-xmlpatterns

@vipers36: libqt4-maemo5-maemo5 contains just the Maemo 5 specific classes of 4.6, it’s not a full install (only pulls in QtCore and QtGui as dependencies)
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post:
Posts: 17 | Thanked: 42 times | Joined on Feb 2010
#4
Thanks attila77, I am linking against 4.5, as I'm using MADDE, it works fine when I install libqt4-xmlpatterns. Not quite sure why I had to; I thought Qt 4.5 was available by default under PR1.1?
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#5
It is, but AFAIK only QtCore and QtXml are installed by default on PR1.1, due to the limited space available on the rootfs.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post:
Posts: 6 | Thanked: 0 times | Joined on Apr 2010
#6
Thanks for your reply!

downloaded libqt4-maemo5-xmlpatterns, libqt4-maemo5-webkit, libqt4-maemo5-network and uninstalled libqt4*

Now I got "Error while loading shared libraries: libQtWebKit.so.4..."
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#7
Hm, you still are not linking to the libs you have. Make sure you have the same SDK and PR version and that you are linking against the same Qt version, too.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Posts: 6 | Thanked: 0 times | Joined on Apr 2010
#8
Hm, dump question:
How do I link to the libs?
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#9
That is determined by which qmake you call (if you call 4.6’s qmake, you get linked to 4.6). Are you using scratchbox or MADDE to compile ?

Note that there is currently a small mixup as the SDK and the autobuilder have been updated to PR1.2 so there is a lib mismatch with regard things on actual devices (the Qt libs have been moved/renamed)
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Posts: 6 | Thanked: 0 times | Joined on Apr 2010
#10
I use scratchbox with Qt4.6 (at least qmake -v says:" Using Qt version 4.6.2 in /usr/lib").

On the phone I installed libqt4-maemo5-* which should be the 4.6 and I removed the 4.5 libs. Although I get the error.
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:45.