Click here to Skip to main content
15,884,099 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralRe: php that runs on Debian 11 and connects to another machine on the network. Pin
Member 1579676014-Oct-22 1:53
Member 1579676014-Oct-22 1:53 
QuestionMessage Closed Pin
6-Oct-22 7:31
Member 149687716-Oct-22 7:31 
AnswerRe: Removing unneeded OS partitions Pin
Jeremy Falcon2-Nov-22 14:10
professionalJeremy Falcon2-Nov-22 14:10 
Questiongrub-rescue flashes then grub menu Pin
tumuxoyu5-Jul-22 23:52
tumuxoyu5-Jul-22 23:52 
QuestionBasic on shell ,Git and vagrant Pin
Ezikiel Odutola22-Jun-22 22:24
Ezikiel Odutola22-Jun-22 22:24 
AnswerRe: Basic on shell ,Git and vagrant Pin
Richard Deeming22-Jun-22 23:57
mveRichard Deeming22-Jun-22 23:57 
QuestionMessage Closed Pin
26-May-22 5:35
Member 1496877126-May-22 5:35 
AnswerRe: Mutiboot grub - run last OS option - all Linux Pin
Richard MacCutchan26-May-22 21:46
mveRichard MacCutchan26-May-22 21:46 
GeneralMessage Closed Pin
27-May-22 6:50
Member 1496877127-May-22 6:50 
GeneralRe: Mutiboot grub - run last OS option - all Linux Pin
Richard MacCutchan27-May-22 21:53
mveRichard MacCutchan27-May-22 21:53 
AnswerRe: Mutiboot grub - run last OS option - all Linux Pin
Gerry Schmitz27-May-22 8:06
mveGerry Schmitz27-May-22 8:06 
GeneralMessage Closed Pin
28-May-22 6:46
Member 1496877128-May-22 6:46 
GeneralRe: Mutiboot grub - run last OS option - all Linux Pin
Gerry Schmitz28-May-22 7:47
mveGerry Schmitz28-May-22 7:47 
QuestionMessage Closed Pin
30-Apr-22 4:25
Member 1496877130-Apr-22 4:25 
AnswerRe: Running file properties... Pin
Richard MacCutchan30-Apr-22 5:07
mveRichard MacCutchan30-Apr-22 5:07 
AnswerRe: Running file properties... Pin
trønderen30-Apr-22 8:30
trønderen30-Apr-22 8:30 
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 

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.