How use bluetooth.h in my project?

Hi All! I've assembled small project using the SDK. Everything is assembled and works fine. There was a need to use some functionality from hcitool (bluetooth scanner).
I've been faced with the following problem: I just can’t add files like bluetooth.h hci.h hci_lib.h to the project.

The main project header files are in:


The bluetooth.h hci.h hci_lib.h files are located in:


I am using eclipse. When specifying a path in the IDE, there is a problem with the use of header files that are used inside bluetooth.h etc.

How to use bluetooth.h correctly?

Regards, KlenKlenov.

Hello! I need to include code in my project

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>

int main(int argc, char **argv)
    inquiry_info *ii = NULL;
    int max_rsp, num_rsp;
    int dev_id, sock, len, flags;
    int i;
    char addr[19] = { 0 };
    char name[248] = { 0 };

    dev_id = hci_get_route(NULL);
    sock = hci_open_dev( dev_id );
    if (dev_id < 0 || sock < 0) {
        perror("opening socket");

    free( ii );
    close( sock );
    return 0;

Do I understand correctly that the only right solution is to make the package for openwrt described here ?

At the moment, my project without the code above is being built using the SDK, then I just
copied file bin to the device.

Regards, KlenKlenov.