Results 1 to 7 of 7

Thread: Bluetooth libraries in Qt 4.4

  1. #1
    Join Date
    Apr 2009
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default 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.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default 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?

  3. #3
    Join Date
    Apr 2009
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default 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.

  4. #4
    Join Date
    Apr 2009
    Posts
    14
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Bluetooth libraries in Qt 4.4

    hi
    i am using qt extended figcta01 sdk 4.3.2
    and i have the same error

  5. #5
    Join Date
    Apr 2009
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default 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?

  6. #6
    Join Date
    Jun 2007
    Location
    Cambridge, United Kingdom
    Posts
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default 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

    Qt Code:
    1. -add-module bluetooth
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    Burkhard

  7. #7
    Join Date
    Apr 2009
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default 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?

Similar Threads

  1. Replies: 2
    Last Post: 8th March 2007, 22:22
  2. how to add new libraries to QT
    By whoops.slo in forum Newbie
    Replies: 3
    Last Post: 12th January 2007, 11:15
  3. Qt 3.3 libraries
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 21st December 2006, 17:25
  4. Standardization on libraries
    By brcain in forum General Discussion
    Replies: 13
    Last Post: 16th August 2006, 22:56
  5. Replies: 4
    Last Post: 7th March 2006, 08:52

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.