Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.6.1
-
X11 (Red Hat 6.0) with gcc 4.9.1
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 }