Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
1.2.0
-
None
-
Mac OS 10.6, with Qt from macports
Description
The bluetooth connectivity code fails to build if the following conditions are simultaneously met:
- the platform is NOT symbian
- Qt is built with dbus enabled
- bluez is NOT available
The error is:
:info:build /usr/bin/g+-4.2 -c -pipe -O2 -arch i386 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DQT_SHARED -DQTM_PLUGIN_PATH=\"/opt/local/share/qt4/plugins\" -DQT_BUILD_CONNECTIVITY_LIB -DQT_MAKEDLL -DQT_NO_DEBUG -DQT_CORE_LIB -I/opt/local/share/qt4/mkspecs/macx-g+ -I. -I../../build/Release/QtConnectivity/moc -I../global -Infc -Ibluetooth -I.. -I/opt/local/include/QtNetwork -I/opt/local/include/QtCore -I/opt/local/include -o ../../build/Release/QtConnectivity/qbluetoothlocaldevice.o bluetooth/qbluetoothlocaldevice.cpp
:info:build In file included from bluetooth/qbluetoothlocaldevice.cpp:43:
:info:build bluetooth/qbluetoothlocaldevice_p.h:56:24: error: QDBusContext: No such file or directory
:info:build bluetooth/qbluetoothlocaldevice_p.h:57:27: error: QDBusObjectPath: No such file or directory
:info:build bluetooth/qbluetoothlocaldevice_p.h:58:24: error: QDBusMessage: No such file or directory
The reason is that the dbus code is enabled as long as "QT_NO_DBUS" is not defined, but "QT *= dbus" is only active if both dbus AND bluez are found (see connectivity/bluetooth/bluetooth.pri).