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 to
dbus_bus_register@LIBDBUS_1_3'
5.11.1/gcc_64/lib/libQt5WebEngineCore.so.5.11.1: undefined reference todbus_watch_get_data@LIBDBUS_1_3' 5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference to
dbus_server_set_timeout_functions@LIBDBUS_1_3'
5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference todbus_connection_close@LIBDBUS_1_3' 5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference to
dbus_message_get_signature@LIBDBUS_1_3'
5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference todbus_message_new_signal@LIBDBUS_1_3' 5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference to
dbus_message_iter_append_fixed_array@LIBDBUS_1_3'
5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference todbus_message_set_sender@LIBDBUS_1_3' 5.11.1/gcc_64/lib/libQt5DBus.so.5.11.1: undefined reference to
dbus_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' -
Hi,
What version of DBus do you have installed on your system ?
-
Discussing in a Qt bug: https://bugreports.qt.io/browse/QTBUG-69100
-
Thanks for the link.
So as I suspected, you are using too old of a version of that library.