Problems linking DBus on Trusty starting with Qt 5.11



  • Starting with Qt 5.11 (both .0 and .1), projects using DBus are failing to link on some older build platforms, including Ubuntu Trusty (14.x).

    Note: Using pre-built Qt linux x64 binaries installed via the online installer.

    Happens with our project, also with Qt samples using DBus when try to build them in Qt Creator. Get a bunch of linker errors.

    5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference to dbus_message_copy@LIBDBUS_1_3' 5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference todbus_bus_register@LIBDBUS_1_3'
    5.11.1/gcc_64/lib/libQt5WebEngineCore.so.5.11.1: undefined reference to dbus_watch_get_data@LIBDBUS_1_3' 5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference todbus_server_set_timeout_functions@LIBDBUS_1_3'
    5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference to dbus_connection_close@LIBDBUS_1_3' 5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference todbus_message_get_signature@LIBDBUS_1_3'
    5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference to dbus_message_new_signal@LIBDBUS_1_3' 5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference todbus_message_iter_append_fixed_array@LIBDBUS_1_3'
    5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference to dbus_message_set_sender@LIBDBUS_1_3' 5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference todbus_message_get_type@LIBDBUS_1_3'
    5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference to `dbus_message_new_method_call@LIBDBUS_1_3'


  • Lifetime Qt Champion

    Hi,

    What version of DBus do you have installed on your system ?




  • Lifetime Qt Champion

    Thanks for the link.

    So as I suspected, you are using too old of a version of that library.


Log in to reply
 

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