![]() |
libQtXmlPatterns on device
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 |
Re: libQtXmlPatterns on device
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 |
Re: libQtXmlPatterns on device
@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) |
Re: libQtXmlPatterns on device
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?
|
Re: libQtXmlPatterns on device
It is, but AFAIK only QtCore and QtXml are installed by default on PR1.1, due to the limited space available on the rootfs.
|
Re: libQtXmlPatterns on device
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..." |
Re: libQtXmlPatterns on device
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.
|
Re: libQtXmlPatterns on device
Hm, dump question:
How do I link to the libs? |
Re: libQtXmlPatterns on device
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) |
Re: libQtXmlPatterns on device
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. |
Re: libQtXmlPatterns on device
Quote:
|
Re: libQtXmlPatterns on device
Thanks for your answer, I'll be patient.
|
Re: libQtXmlPatterns on device
I found a way to make it already working on the device:
Just install libqt4*4.6.2*armel.deb on the device from http://repository.maemo.org/pool/fre...ree/q/qt4-x11/ |
| All times are GMT. The time now is 22:26. |
vBulletin® Version 3.8.8