PDA

View Full Version : How to track down "incompatible Qt library" error?



jiveaxe
15th July 2015, 12:35
Hi, recently I noticed that some applications crash on startup with the following error:


Cannot mix incompatible Qt library (version 0x50400) with this library (version 0x50402)

All my qt packages come from official Chakra repositories: Qt5 5.4.2 and Qt4 4.8.7

If I'm not wrong the error says that there is a library compiled against Qt5 5.4.0 but I really dunno which it is. Any help?

Thanks

BuddyLuvve
15th July 2015, 17:24
I'm having the same problem on Arch... My message is:

Cannot mix incompatible Qt library (version 0x50402) with this library (version 0x50500)
I've got no idea which library it's complaining about, but most likely not the exact same one as you -- but I'd LOVE some ideas on where to start looking!!! My packages are all 5.5 -- Someone help us track down which library needs to be updated!

anda_skoa
15th July 2015, 17:40
That might be a library being picked up from a different location or a plugin from a different version.

If you look at the "ldd" output of the executable, are all Qt libraries listed there from the version you expect?

Cheers,
_

jiveaxe
15th July 2015, 17:51
This is the output for designer:



$ ldd /usr/bin/designer-qt5
linux-vdso.so.1 (0x00007ffc0a942000)
libQt5DesignerComponents.so.5 => /usr/lib/libQt5DesignerComponents.so.5 (0x00007f3a7fc68000)
libQt5Designer.so.5 => /usr/lib/libQt5Designer.so.5 (0x00007f3a7f758000)
libQt5PrintSupport.so.5 => /usr/lib/libQt5PrintSupport.so.5 (0x00007f3a80048000)
libQt5Widgets.so.5 => /usr/lib/libQt5Widgets.so.5 (0x00007f3a7f0e0000)
libQt5Gui.so.5 => /usr/lib/libQt5Gui.so.5 (0x00007f3a7eb98000)
libQt5Xml.so.5 => /usr/lib/libQt5Xml.so.5 (0x00007f3a80008000)
libQt5Network.so.5 => /usr/lib/libQt5Network.so.5 (0x00007f3a7ea40000)
libQt5Core.so.5 => /usr/lib/libQt5Core.so.5 (0x00007f3a7e570000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f3a7e260000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f3a7deb8000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f3a7dbb0000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f3a7d990000)
libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f3a7d758000)
libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007f3a7d500000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007f3a7d2e8000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f3a7cf98000)
libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007f3a7cd28000)
libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007f3a7c910000)
libicui18n.so.53 => /usr/lib/libicui18n.so.53 (0x00007f3a7c4d0000)
libicuuc.so.53 => /usr/lib/libicuuc.so.53 (0x00007f3a7c150000)
libpcre16.so.0 => /usr/lib/libpcre16.so.0 (0x00007f3a7bee8000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f3a7bce0000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f3a7b9d0000)
librt.so.1 => /usr/lib/librt.so.1 (0x00007f3a7b7c8000)
libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007f3a7ffe0000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f3a7b5b0000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3a7fef0000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f3a7b300000)
libgraphite2.so.2.0.0 => /usr/lib/libgraphite2.so.2.0.0 (0x00007f3a7b0e0000)
libnvidia-tls.so.340.76 => /usr/lib/libnvidia-tls.so.340.76 (0x00007f3a7aed8000)
libnvidia-glcore.so.340.76 => /usr/lib/libnvidia-glcore.so.340.76 (0x00007f3a782c0000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f3a77f78000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f3a77d60000)
libicudata.so.53 => /usr/lib/libicudata.so.53 (0x00007f3a766d8000)
libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f3a76468000)
libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f3a76260000)
liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f3a76038000)
liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007f3a75e28000)
libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f3a75b40000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f3a75928000)
libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f3a75710000)
libdw.so.1 => /usr/lib/libdw.so.1 (0x00007f3a754c8000)
libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f3a752b8000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f3a75090000)
libattr.so.1 => /usr/lib/libattr.so.1 (0x00007f3a74e88000)
libelf.so.1 => /usr/lib/libelf.so.1 (0x00007f3a74c70000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f3a74a68000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f3a74860000)


All /usr/lib/libQt5* files come from qt5-tools or qt5-base packages, as expected...

BuddyLuvve
15th July 2015, 19:05
That might be a library being picked up from a different location or a plugin from a different version.

If you look at the "ldd" output of the executable, are all Qt libraries listed there from the version you expect?

Cheers,
_

Hey, thanks for the help (and the QUICK reply!)... I was getting this error when trying to start Kontact built against KF5 from git (and thus had to build quite a few other things from git), but I was also having issues with the Arch packaged Konsole crashing as well. In the attempt to fix this I situation I have removed most of the -git packages and reverted to the Arch packaged equivalent ones. By using ldd I found that Konsole was linked to /usr/lib/libQt5TextToSpeech.so.5 from the qtspeech-git package (no idea WHY the Arch packaged Konsole is linked to an AUR package, but oh well...) -- after I rebuilt the qtspeech-git package, Konsole no longer crashes. I'll rebuild the kdepim-git packages and see if the problem has been fixed.

I'll update in a while when/if my issue has been taken care of!

THANKS AGAIN! :-)

jiveaxe
16th July 2015, 09:49
Hey, thanks for the help (and the QUICK reply!)... I was getting this error when trying to start Kontact built against KF5 from git (and thus had to build quite a few other things from git)

The same for me


I have removed most of the -git packages and reverted to the Arch packaged equivalent ones. By using ldd I found that Konsole was linked to /usr/lib/libQt5TextToSpeech.so.5 from the qtspeech-git package

This is not my case since I'm using official packages and -git ones only for kdepim stack

ChrisW67
16th July 2015, 10:28
Is Qt Designer one of the "some applications" that crash?

Look at the output of:


$ ls -l /usr/lib/libQt*

jiveaxe
16th July 2015, 11:12
Is Qt Designer one of the "some applications" that crash?

indeed yes



Look at the output of:


$ ls -l /usr/lib/libQt*


You got it. thanks. The problem seems related to some /usr/lib/libQt5TextToSpeech* files not belonging to any package. After removing them designer is working fine again