This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Qt Bluetooth

Hello,

I am making an application in Qt for AM335x and I want to send and receive some data using BT using rfcomm.

I am using the programs in C wrote by http://www.btessentials.com/, the programs use #include<bluetooth/bluetooth.h> and they wonnt compile in Qt Editor:

In file included from ../Blueqt/main.cpp:3:0:
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h: In function 'uint64_t bt_get_le64(void*)':
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:131:9: error: invalid conversion from 'void*' to 'bt_get_le64(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h: In function 'uint64_t bt_get_be64(void*)':
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from 'void*' to 'bt_get_be64(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from 'void*' to 'bt_get_be64(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from 'void*' to 'bt_get_be64(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from 'void*' to 'bt_get_be64(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from 'void*' to 'bt_get_be64(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from 'void*' to 'bt_get_be64(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from 'void*' to 'bt_get_be64(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from 'void*' to 'bt_get_be64(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from 'void*' to 'bt_get_be64(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:136:9: error: invalid conversion from 'void*' to 'bt_get_be64(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h: In function 'uint32_t bt_get_le32(void*)':
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:141:9: error: invalid conversion from 'void*' to 'bt_get_le32(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h: In function 'uint32_t bt_get_be32(void*)':
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:146:9: error: invalid conversion from 'void*' to 'bt_get_be32(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h: In function 'uint16_t bt_get_le16(void*)':
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:151:9: error: invalid conversion from 'void*' to 'bt_get_le16(void*)::<anonymous struct>*'
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h: In function 'uint16_t bt_get_be16(void*)':
/home/claudiu/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/bluetooth/bluetooth.h:156:9: error: invalid conversion from 'void*' to 'bt_get_be16(void*)::<anonymous struct>*'
make: Leaving directory `/home/claudiu/Programe Qt/Blueqt/Blueqt-build-desktop-Qt_4_7_2__linux-devkit__Debug'
make: *** [main.o] Error 1
06:29:41: The process "/usr/bin/make" exited with code 2.
Error while building project Blueqt (target: Desktop)
When executing build step 'Make'

 I have compile the program in the book in Code Composer Studio by adding  -lbluetooth in the makefile, but in Qt I don't know how to do that.

I just want to send and receive some date from BT and display them in the GUI.

Thank you very much.