Bluetooth libraries in Qt 4.4
How do I get the Bluetooth libraries to work in Qt 4.4? I include them in my source files:
#include <QBluetoothAbstractService>
but when I run qmake to compile I get "unidentified reference" errors to the Bluetooth classes.
Do I need to add something to my qmake.pro file so It sees the Bluetooth libraries?
Any help is much appreciated.
Re: Bluetooth libraries in Qt 4.4
Could you show the exact error message that you get? Also, looking at the docs - I assume that you use Qt Extended 4.4?
Re: Bluetooth libraries in Qt 4.4
I am using Qt Extended 4.4.
I think the problem I am having is that the bluetooth libraries (.cpp and .h) arn't were they are supposed to be and I'm unsure were they are meant to be. An example of the errors I am getting are:
undifined refernece to 'QBluetoothAbstractService::started(bool, Qstring const&)'
undifined refernece to 'QBluetoothSdpRecord::rfcommChannel(QBluetoothSdpR ecord const&)'
undifined refernece to 'QBluetoothAbstractService::unregisterRecord(unsig ned int)'
At the moment I am tring to get the sample code working from the Bluetooth tutorial part of the QT Extended 4.3 Documentation but i just keep getting these errors.
Re: Bluetooth libraries in Qt 4.4
hi
i am using qt extended figcta01 sdk 4.3.2
and i have the same error
Re: Bluetooth libraries in Qt 4.4
I think the problem might be that the bluetooth source files wern't compiled into the system libraries (the files you include with #include <xxxxx>) and if for example you try to include the class qbluetoothAbstractService by include the following line of code:
#include <QBluetoothAbstractService>
I get the error:
warning: QBluetoothAstractService.h : No such file or directory.
So what I want to know is how can I use these bluetooth clasees given they are not currently in the system libraries?
Re: Bluetooth libraries in Qt 4.4
Did you enable the Bluetooth module in your configuration file?
Either devices/<your-device>/configure or devices/reference/configure-common should contain a line like
Code:
-add-module bluetooth
Cheers,
Burkhard
Re: Bluetooth libraries in Qt 4.4
I managed to get the Bluetooth libraries to work by adding QTOPIA+=comm in the qbuild.pro file. I thought I had tried this before but I might have done something similar instead. Anyway now I'm having issues connecting to the Greenphone device using the USB cable. I can ping 10.10.10.20 successfully but when I try to telnet or ssh to 10.10.10.20 I just get the error: "Connection Refused". Before in Qtopia 4.2.2 I just used gph to build and install applications on the Greenphone but I don't think I can in Qt Extended 4.4.2.
Any Suggestions?