Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
X11 apps need to ship Qt5DBus shared lib as well are other Qt libs
KeithS last edited by
Recently came across an issue where an end user was getting an error:
Cannot mix incompatible Qt library (version 0x50201) with this library (version 0x50401)
Now I couldn't reproduce this on my Linux VM (Ubuntu 14.04 64 bit). I had shipped the required libs (as shown by running ldd on my app) so puzzled why the user was getting this error.
Well it turns out the documentation for deploying Qt apps on X11 is missing something: it mentions e.g. in the Plug&Paint example:
The Qt xcb platform plugin
The Qt Core module
The Qt GUI module
The Qt Widgets module
However they forget to say that libqxcb.do depends on libQt5DBus.so.5 (dbus support is on by default wnen runnining congfigure). So the user was picking up a 5.2.1 lib, hence the error. On adding libQt5DBus.so.5 to the libs I ship, the error went away.
Hope this may be of help....
That might be considered a documentation bug. You should have a look at the bug report system to see if it's something known. If not please consider opening a new report targeting documentation. If you want you can even submit an update to documentation yourself