Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54055

qtconnectivity/Bluetooth module can't compile in classic mode

    XMLWordPrintable

Details

    Description

      The user is trying to compile Qt from the source. He gets this error output:

      Project MESSAGE: Bluez version is too old to support Bluetooth Low Energy.
      Project MESSAGE: Only classic Bluetooth will be available.
      .obj/qlowenergycontroller_p.o: In function `QLowEnergyControllerPrivate::QLowEnergyControllerPrivate()':
      /storage/data/tmp/5.6.1/qtconnectivity/src/bluetooth/qlowenergycontroller_p.cpp:47: undefined reference to `printDummyWarning()'
      collect2: error: ld returned 1 exit status
      make[2]: *** [../../lib/libQt5Bluetooth.so.5.6.1] Error 1
      make[1]: *** [sub-bluetooth-make_first] Error 2
      make: *** [sub-src-make_first] Error 2
      

      As the user originally points it out, qtconnectivity/src/bluetooth/bluetooth.pro doesn't include dummy/dummy.pri in the case Bluetooth Low Energy is not available in Linux.

      The user suggested this fix:

      --- bluetooth.pro-orig 2016-06-11 07:46:25.352423385 +0200
      +++ bluetooth.pro 2016-06-11 07:43:43.477526694 +0200
      @@ -91,6 +91,7 @@
      message("Bluez version is too old to support Bluetooth Low Energy.")
      message("Only classic Bluetooth will be available.")
      DEFINES += QT_BLUEZ_NO_BTLE
      + include(dummy/dummy.pri)
      SOURCES += \
      qlowenergycontroller_p.cpp
      }
      

      Attachments

        For Gerrit Dashboard: QTBUG-54055
        # Subject Branch Project Status CR V

        Activity

          People

            ablasche Alex Blasche
            dmnikola Dmitry Nikolaev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes