You are not logged in.

#1 2014-08-11 01:36:20

darenw
Member
From: Trego Montana
Registered: 2008-07-04
Posts: 106
Website

[SOLVED] Bluetooth development headers

I'm attempting to screw around with Bluetooth on an Arch-running machine.  I've installed bluez and bluez-util.  The kernel has the relevant bluetooth modules running. I'm all set for some coding fun...

Except there aren't any bluetooth header files on this machine.  Sample C code I see shows lines like #include <bluetooth/bluetooth.h> or #include <btinclude.h> or similar.   Using find, I find nothing in /usr/include with a name including "blue" or even just "bt" (ignoring some obvious irrelevant files). 

Is there some other Arch package that provides the bluetooth headers?

Last edited by darenw (2014-08-11 16:07:33)


Artist/Physicist, Herder of Pixels, Photons and Electrons

Offline

#2 2014-08-11 01:48:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,346

Re: [SOLVED] Bluetooth development headers

ewaller$@$odin ~ 1007 %locate bluetooth | grep include          
/home/ewaller/devel/build/linux/src/linux-3.14/include/net/bluetooth
/home/ewaller/devel/build/linux/src/linux-3.14/include/net/bluetooth/bluetooth.h
/home/ewaller/devel/build/linux/src/linux-3.14/include/net/bluetooth/hci.h
/home/ewaller/devel/build/linux/src/linux-3.14/include/net/bluetooth/hci_core.h
/home/ewaller/devel/build/linux/src/linux-3.14/include/net/bluetooth/hci_mon.h
/home/ewaller/devel/build/linux/src/linux-3.14/include/net/bluetooth/l2cap.h
/home/ewaller/devel/build/linux/src/linux-3.14/include/net/bluetooth/mgmt.h
/home/ewaller/devel/build/linux/src/linux-3.14/include/net/bluetooth/rfcomm.h
/home/ewaller/devel/build/linux/src/linux-3.14/include/net/bluetooth/sco.h
/usr/include/bluetooth
/usr/include/NetworkManager/nm-setting-bluetooth.h
/usr/include/bluetooth/bluetooth.h
/usr/include/bluetooth/bnep.h
/usr/include/bluetooth/cmtp.h
/usr/include/bluetooth/hci.h
/usr/include/bluetooth/hci_lib.h
/usr/include/bluetooth/hidp.h
/usr/include/bluetooth/l2cap.h
/usr/include/bluetooth/rfcomm.h
/usr/include/bluetooth/sco.h
/usr/include/bluetooth/sdp.h
/usr/include/bluetooth/sdp_lib.h
/usr/include/pcap/bluetooth.h
/usr/include/wireshark/epan/dissectors/packet-bluetooth-hci.h
/usr/include/xulrunner-31.0/mozilla/dom/bluetooth
/usr/include/xulrunner-31.0/mozilla/dom/bluetooth/BluetoothCommon.h
/usr/include/xulrunner-31.0/mozilla/dom/bluetooth/ipc
/usr/include/xulrunner-31.0/mozilla/dom/bluetooth/ipc/BluetoothMessageUtils.h
/usr/lib/modules/3.16.0-2-ARCH/build/include/net/bluetooth
/usr/lib/modules/3.16.0-2-ARCH/build/include/net/bluetooth/bluetooth.h
/usr/lib/modules/3.16.0-2-ARCH/build/include/net/bluetooth/hci.h
/usr/lib/modules/3.16.0-2-ARCH/build/include/net/bluetooth/hci_core.h
/usr/lib/modules/3.16.0-2-ARCH/build/include/net/bluetooth/hci_mon.h
/usr/lib/modules/3.16.0-2-ARCH/build/include/net/bluetooth/l2cap.h
/usr/lib/modules/3.16.0-2-ARCH/build/include/net/bluetooth/mgmt.h
/usr/lib/modules/3.16.0-2-ARCH/build/include/net/bluetooth/rfcomm.h
/usr/lib/modules/3.16.0-2-ARCH/build/include/net/bluetooth/sco.h
ewaller$@$odin ~ 1008 %pacman -Qo /usr/include/bluetooth/bluetooth.h
/usr/include/bluetooth/bluetooth.h is owned by bluez-libs 5.21-2
ewaller$@$odin ~ 1009 %

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2014-08-11 04:31:18

darenw
Member
From: Trego Montana
Registered: 2008-07-04
Posts: 106
Website

Re: [SOLVED] Bluetooth development headers

I do not have a /usr/include/bluetooth directory.
Which Arch package provides it and its contents?


Artist/Physicist, Herder of Pixels, Photons and Electrons

Offline

#4 2014-08-11 04:40:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,346

Re: [SOLVED] Bluetooth development headers

I think you did not get down to the last three lines of my post


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2014-08-11 16:06:40

darenw
Member
From: Trego Montana
Registered: 2008-07-04
Posts: 106
Website

Re: [SOLVED] Bluetooth development headers

Aha.  Problem solved.


Artist/Physicist, Herder of Pixels, Photons and Electrons

Offline

Board footer

Powered by FluxBB