Click here to Skip to main content
15,880,905 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralMessage Closed Pin
1-May-22 15:15
Member 149687711-May-22 15:15 
GeneralRe: Running file properties... Pin
trønderen2-May-22 1:58
trønderen2-May-22 1:58 
QuestionMessage Closed Pin
24-Mar-22 14:01
Member 1496877124-Mar-22 14:01 
AnswerRe: How to correlate hci_tool commands with "blueZ" library functions ? Pin
Richard MacCutchan24-Mar-22 21:53
mveRichard MacCutchan24-Mar-22 21:53 
GeneralMessage Closed Pin
25-Mar-22 3:49
Member 1496877125-Mar-22 3:49 
GeneralRe: How to correlate hci_tool commands with "blueZ" library functions ? Pin
Richard MacCutchan25-Mar-22 3:52
mveRichard MacCutchan25-Mar-22 3:52 
QuestionMessage Closed Pin
20-Mar-22 8:41
Member 1496877120-Mar-22 8:41 
AnswerRe: How to find what name and where the (bluetooth) library is located? Pin
k505421-Mar-22 12:42
mvek505421-Mar-22 12:42 
Short answer is you don't need to know. When linking your program with -lbluetooth should be enough, if it's installed in the usual place. Depending on what your development environment is, you can use pkg-config to tell you what flags you need to use to find headers and libs e.g
Bash
k5054@localhost:~$ pkg-config --cflags bluez

k5054@localhost:~$ pkg-config --libs bluez
-lbluetooth
k5054@localhost:~$
This tells us that we don't need any additional flags for compilation, and only need to add -lbluetooth when linking.

If you really want to know where the lib is, you can use dpkg to tell you where it is
Bash
k5054@localhost:~$ dpkg -S libbluetooth | grep .so
libbluetooth3:amd64: /usr/lib/x86_64-linux-gnu/libbluetooth.so.3
libbluetooth3:amd64: /usr/lib/x86_64-linux-gnu/libbluetooth.so.3.19.3
libbluetooth-dev:amd64: /usr/lib/x86_64-linux-gnu/libbluetooth.so
k5054@localhost:~$ 
Note that debian/ubuntu uses the target architecture as part of the filename for libraries, so for a PI with a 32 bit Raspberry Pi OS, the path is /usr/lib/arm-linux-gnueabihf/libbluetooth.so.3, and it would be different again for a PI with a 64-bit OS, or an i386, MIPS, etc.
Keep Calm and Carry On

AnswerRe: How to find what name and where the (bluetooth) library is located? Pin
Richard MacCutchan21-Mar-22 22:54
mveRichard MacCutchan21-Mar-22 22:54 
AnswerRe: How to find what name and where the (bluetooth) library is located? Pin
Member 157889596-Oct-22 1:24
professionalMember 157889596-Oct-22 1:24 
QuestionMessage Closed Pin
13-Mar-22 4:43
Member 1496877113-Mar-22 4:43 
AnswerRe: How to run ./configure - bluez Pin
Richard MacCutchan13-Mar-22 6:43
mveRichard MacCutchan13-Mar-22 6:43 
AnswerRe: How to run ./configure - bluez Pin
k505413-Mar-22 8:04
mvek505413-Mar-22 8:04 
QuestionLinux IDE Pin
Dr.Walt Fair, PE15-Feb-22 12:34
professionalDr.Walt Fair, PE15-Feb-22 12:34 
AnswerRe: Linux IDE Pin
Greg Utas15-Feb-22 13:41
professionalGreg Utas15-Feb-22 13:41 
GeneralRe: Linux IDE Pin
DrWalter PE26-Feb-22 5:10
professionalDrWalter PE26-Feb-22 5:10 
AnswerRe: Linux IDE Pin
Sam Hobbs27-Oct-22 19:34
Sam Hobbs27-Oct-22 19:34 
GeneralRe: Linux IDE Pin
Richard Deeming27-Oct-22 21:07
mveRichard Deeming27-Oct-22 21:07 
QuestionLinux partition simulator Pin
Kanel Roath10-Feb-22 1:43
Kanel Roath10-Feb-22 1:43 
AnswerRe: Linux partition simulator Pin
k505418-Feb-22 4:23
mvek505418-Feb-22 4:23 
QuestionNewbie Here Pin
Discipuluz27-Jan-22 6:14
Discipuluz27-Jan-22 6:14 
AnswerRe: Newbie Here Pin
Richard MacCutchan27-Jan-22 6:38
mveRichard MacCutchan27-Jan-22 6:38 
GeneralRe: Newbie Here Pin
Discipuluz27-Jan-22 7:22
Discipuluz27-Jan-22 7:22 
AnswerRe: Newbie Here Pin
markkuk27-Jan-22 6:46
markkuk27-Jan-22 6:46 
GeneralRe: Newbie Here Pin
Discipuluz27-Jan-22 7:22
Discipuluz27-Jan-22 7:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.