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

Linux Programming

 
Questiongrub-rescue flashes then grub menu Pin
tumuxoyu5-Jul-22 23:52
Membertumuxoyu5-Jul-22 23:52 
QuestionBasic on shell ,Git and vagrant Pin
Ezikiel Odutola22-Jun-22 22:24
MemberEzikiel 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 
QuestionMutiboot grub - run last OS option - all Linux Pin
Member 1496877126-May-22 5:35
MemberMember 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 
GeneralRe: Mutiboot grub - run last OS option - all Linux Pin
Member 1496877127-May-22 6:50
MemberMember 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 
GeneralRe: Mutiboot grub - run last OS option - all Linux Pin
Member 1496877128-May-22 6:46
MemberMember 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 
AnswerRe: Mutiboot grub - run last OS option - all Linux Pin
Member 1496877129-May-22 7:44
MemberMember 1496877129-May-22 7:44 
QuestionRunning file properties... Pin
Member 1496877130-Apr-22 4:25
MemberMember 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
Membertrønderen30-Apr-22 8:30 
GeneralRe: Running file properties... Pin
Member 149687711-May-22 15:15
MemberMember 149687711-May-22 15:15 
GeneralRe: Running file properties... Pin
trønderen2-May-22 1:58
Membertrønderen2-May-22 1:58 
GeneralRe: Running file properties... Pin
Member 149687712-May-22 5:51
MemberMember 149687712-May-22 5:51 
QuestionHow to actually install Qwt Pin
Member 1496877122-Apr-22 6:47
MemberMember 1496877122-Apr-22 6:47 
QuestionHow to correlate hci_tool commands with "blueZ" library functions ? Pin
Member 1496877124-Mar-22 14:01
MemberMember 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 
GeneralRe: How to correlate hci_tool commands with "blueZ" library functions ? Pin
Member 1496877125-Mar-22 3:49
MemberMember 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 
QuestionHow to find what name and where the (bluetooth) library is located? Pin
Member 1496877120-Mar-22 8:41
MemberMember 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.