Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
1.2.0
-
None
Description
error:
bluetooth/qbluetoothlocaldevice_p.h:56:24: error: QDBusContext: No such file or directory
The include logic is wrong. In the *.pro file:
else:contains(bluez_enabled, yes):contains(QT_CONFIG, dbus) {
QT *= dbus
We add D-Bus only if bluez_enabled and QtDBus is available.
However, in the *.h file, we include QDBusContext if !QT_NO_DBUS. This breaks on all systems that have QDBus, but not bluez.
Solution: Either define QT_NO_DBUS if bluez is not found, or introduce a QTM_NO_BLUEZ define to protect D-Bus includes.