I am trying to run a basic code of c in linux[ubuntu] to search bluetooth device, but i am facing some problem.
By using command sudo apt-get install bluez
,
As for i know there no packages for these headers. You have to download the following header files from internet.
bluetooth.h
hci.h
hci_lib.h
and create a directory called "bluetooth
" under /usr/lib/
in your host machine and copy the above headers to /usr/lib/bluetooth/
. Then compile your program, it should work.
Note: while compiling link with -lbluetooth