Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1634

Compile error in connectivity/bluetooth

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            stanleyj Andrew Stanley-Jones (closed Nokia identity) (Inactive)
            fernenge Harald Fernengel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: