Where is the bluetooth/bluetooth.h located in Linux?

前端 未结 2 1952
南方客
南方客 2020-12-29 18:30

I want to build a c file based on BlueZ but seems no bluetooth.h file in my system.

fatal error: bluetooth/bluetooth.h: No such file or directory


        
相关标签:
2条回答
  • 2020-12-29 18:47

    You need to install libbluetooth-dev package for compiling your code

    sudo apt-get install libbluetooth-dev
    

    That should install the bluetooth header files.

    0 讨论(0)
  • 2020-12-29 18:58

    For Fedora, you can use:

    sudo dnf install bluez-libs-devel
    
    0 讨论(0)
提交回复
热议问题