X11 apps need to ship Qt5DBus shared lib as well are other Qt libs



  • 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
    platforms\libqxcb.so
    The Qt Core module
    libQt5Core.so.5
    The Qt GUI module
    libQt5Gui.so.5
    The Qt Widgets module
    libQt5Widgets.so.5

    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....


  • Lifetime Qt Champion

    Hi,

    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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.