Click here to Skip to main content
15,565,568 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralRe: Running file properties... Pin
Member 149687712-May-22 6:51
Member 149687712-May-22 6:51 
QuestionHow to actually install Qwt Pin
Member 1496877122-Apr-22 7:47
Member 1496877122-Apr-22 7:47 
QuestionHow to correlate hci_tool commands with "blueZ" library functions ? Pin
Member 1496877124-Mar-22 15:01
Member 1496877124-Mar-22 15:01 
AnswerRe: How to correlate hci_tool commands with "blueZ" library functions ? Pin
Richard MacCutchan24-Mar-22 22:53
mveRichard MacCutchan24-Mar-22 22:53 
GeneralRe: How to correlate hci_tool commands with "blueZ" library functions ? Pin
Member 1496877125-Mar-22 4:49
Member 1496877125-Mar-22 4:49 
GeneralRe: How to correlate hci_tool commands with "blueZ" library functions ? Pin
Richard MacCutchan25-Mar-22 4:52
mveRichard MacCutchan25-Mar-22 4:52 
QuestionHow to find what name and where the (bluetooth) library is located? Pin
Member 1496877120-Mar-22 9:41
Member 1496877120-Mar-22 9:41 
AnswerRe: How to find what name and where the (bluetooth) library is located? Pin
k505421-Mar-22 13:42
mvek505421-Mar-22 13: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 23:54
mveRichard MacCutchan21-Mar-22 23:54 
AnswerRe: How to find what name and where the (bluetooth) library is located? Pin
Member 157889596-Oct-22 2:24
professionalMember 157889596-Oct-22 2:24 
QuestionHow to run ./configure - bluez Pin
Member 1496877113-Mar-22 5:43
Member 1496877113-Mar-22 5:43 
AnswerRe: How to run ./configure - bluez Pin
Richard MacCutchan13-Mar-22 7:43
mveRichard MacCutchan13-Mar-22 7:43 
AnswerRe: How to run ./configure - bluez Pin
k505413-Mar-22 9:04
mvek505413-Mar-22 9:04 
QuestionLinux IDE Pin
Dr.Walt Fair, PE15-Feb-22 13:34
professionalDr.Walt Fair, PE15-Feb-22 13:34 
AnswerRe: Linux IDE Pin
Greg Utas15-Feb-22 14:41
mveGreg Utas15-Feb-22 14:41 
GeneralRe: Linux IDE Pin
DrWalter PE26-Feb-22 6:10
professionalDrWalter PE26-Feb-22 6:10 
AnswerRe: Linux IDE Pin
Member 1496877113-Mar-22 5:49
Member 1496877113-Mar-22 5:49 
AnswerRe: Linux IDE Pin
Sam Hobbs27-Oct-22 20:34
Sam Hobbs27-Oct-22 20:34 
GeneralRe: Linux IDE Pin
Richard Deeming27-Oct-22 22:07
mveRichard Deeming27-Oct-22 22:07 
QuestionLinux partition simulator Pin
Kanel Roath10-Feb-22 2:43
Kanel Roath10-Feb-22 2:43 
AnswerRe: Linux partition simulator Pin
k505418-Feb-22 5:23
mvek505418-Feb-22 5:23 
QuestionNewbie Here Pin
Discipuluz27-Jan-22 7:14
Discipuluz27-Jan-22 7:14 
AnswerRe: Newbie Here Pin
Richard MacCutchan27-Jan-22 7:38
mveRichard MacCutchan27-Jan-22 7:38 
GeneralRe: Newbie Here Pin
Discipuluz27-Jan-22 8:22
Discipuluz27-Jan-22 8:22 
AnswerRe: Newbie Here Pin
markkuk27-Jan-22 7:46
markkuk27-Jan-22 7:46 

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.