Click here to Skip to main content
15,867,686 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
k50549-Mar-19 6:13
mvek50549-Mar-19 6:13 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Vaclav_9-Mar-19 6:50
Vaclav_9-Mar-19 6:50 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
k50549-Mar-19 8:17
mvek50549-Mar-19 8:17 
AnswerRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
k50549-Mar-19 6:48
mvek50549-Mar-19 6:48 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Vaclav_24-Mar-19 7:37
Vaclav_24-Mar-19 7:37 
QuestionWho is on first? Which BlueZ version SOURCE code is best documented? Pin
Vaclav_8-Mar-19 13:46
Vaclav_8-Mar-19 13:46 
AnswerRe: Who is on first? Which BlueZ version SOURCE code is best documented? Pin
Richard MacCutchan8-Mar-19 22:14
mveRichard MacCutchan8-Mar-19 22:14 
AnswerRe: Who is on first? Which BlueZ version SOURCE code is best documented? Pin
k50549-Mar-19 3:57
mvek50549-Mar-19 3:57 
QuestionMore 'bluez" Pin
Vaclav_8-Mar-19 3:56
Vaclav_8-Mar-19 3:56 
QuestionHow does perror works? Pin
Vaclav_8-Mar-19 3:43
Vaclav_8-Mar-19 3:43 
AnswerRe: How does perror works? Pin
Richard MacCutchan8-Mar-19 4:02
mveRichard MacCutchan8-Mar-19 4:02 
GeneralRe: How does perror works? Pin
Vaclav_8-Mar-19 5:34
Vaclav_8-Mar-19 5:34 
GeneralRe: How does perror works? Pin
Richard MacCutchan8-Mar-19 5:43
mveRichard MacCutchan8-Mar-19 5:43 
QuestionOption “bluez” “configure “ for specific architecture Pin
Vaclav_6-Mar-19 11:56
Vaclav_6-Mar-19 11:56 
AnswerRe: Option “bluez” “configure “ for specific architecture Pin
k50546-Mar-19 11:59
mvek50546-Mar-19 11:59 
GeneralRe: Option “bluez” “configure “ for specific architecture Pin
Vaclav_6-Mar-19 14:26
Vaclav_6-Mar-19 14:26 
QuestionAnyone know of a good explanation on cross compiling for the raspberry PI from the Windows (Mingw32 ) Command line Pin
fd97505-Mar-19 23:12
professionalfd97505-Mar-19 23:12 
AnswerRe: Anyone know of a good explanation on cross compiling for the raspberry PI from the Windows (Mingw32 ) Command line Pin
Vaclav_6-Mar-19 3:33
Vaclav_6-Mar-19 3:33 
GeneralRe: Anyone know of a good explanation on cross compiling for the raspberry PI from the Windows (Mingw32 ) Command line Pin
fd97506-Mar-19 4:21
professionalfd97506-Mar-19 4:21 
GeneralRe: Anyone know of a good explanation on cross compiling for the raspberry PI from the Windows (Mingw32 ) Command line Pin
Vaclav_6-Mar-19 4:28
Vaclav_6-Mar-19 4:28 
GeneralRe: Anyone know of a good explanation on cross compiling for the raspberry PI from the Windows (Mingw32 ) Command line Pin
fd97506-Mar-19 5:37
professionalfd97506-Mar-19 5:37 
GeneralRe: Anyone know of a good explanation on cross compiling for the raspberry PI from the Windows (Mingw32 ) Command line Pin
fd97506-Mar-19 21:05
professionalfd97506-Mar-19 21:05 
GeneralRe: Anyone know of a good explanation on cross compiling for the raspberry PI from the Windows (Mingw32 ) Command line Pin
Vaclav_7-Mar-19 3:36
Vaclav_7-Mar-19 3:36 
GeneralRe: Anyone know of a good explanation on cross compiling for the raspberry PI from the Windows (Mingw32 ) Command line Pin
fd97507-Mar-19 4:25
professionalfd97507-Mar-19 4:25 
QuestionSOLVED Developing bluetooth app using "bluez" package (FROM SOURCE ) Pin
Vaclav_5-Mar-19 5:18
Vaclav_5-Mar-19 5:18 
Just FYI - for community benefit - no reply necessary .

1. Retrieve the current "bluez" source from www.bluez.org into desired folder and extract.
2, Modify "configure" file / command options as required (--enable-library etc. )
3. Run "configure"
4. Run "checkinstall" with desired options - (-A to select architecture ) as required
5. Enjoy the ride and you are DONE!
6. Link gcc ("-l") to "bluetooth" library and to library path ("-L") as provided by "configure" output.





This post is yet another request for assistance implementing bluetooth using "bluez". 
It is sort of duplicate and vent about my other  post which went  down on the wrong track. 

I am not asking for C++ code, I am asking for assistance to help me understand the overall concept  of developing bluethooth application, and  also include some details I am having trouble with. 

I understand how bluetooth works, no need of any help there. 
I have been successfully  crosscompiling  my Linux app using Eclipse IDE. 
No need for any help there neither. 

I understand "bluez" is included in Linux kernel and when I try to re "install " it again I get this:

jim@jim-desktop:~$ sudo apt-get install bluez
[sudo] password for jim: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
bluez is already the newest version (5.37-0ubuntu5.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

jim@jim-desktop:~$ ssh pi@10.0.1.76
pi@10.0.1.76's password: 
Linux pi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Mar  4 05:37:40 2019 from 10.0.1.45
pi@pi:~ $ sudo apt-get install bluez
Reading package lists... Done
Building dependency tree       
Reading state information... Done
bluez is already the newest version (5.43-2+rpt2+deb9u2).
The following package was automatically installed and is no longer required:
  realpath
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
pi@pi:~ $ 


I can run bluetooth system calls ,  in both OS , to verify bluez too. 

Am I correct to say I have "precompiled " bluez application on both systems?

Please note that the latest bluez "not compiled / source"  version is 5.50

What I am having trouble with is implementing "bluez" as a development library. 

I downloaded the latest "bluez"  using this link 
http://www.bluez.org/download/
then I followed "README" - basically "configure " and then "install". 
Managed to do both without errors. Here are the progress and "issues" 

1. I moved the bluez-5.50.tar.xz to a directory and extracted it there. OK
2. Run "./configure ..." within the directory and got tons of tracking messages , too big to post RIGHT NOW. OK 
3. Run "sudo make && make install" without getting errors. OK
4. From other sources I should have "bluetooth.x" library SOMEWHERE.
    It should be "bluetooth.a" , but I cannot "find …-name..." it. 
5. At this point the linker , actually cross linker , references to anything "bluetooth"  such as "-lbluethooth" or "-libbluetooth"  yields  " not found " cross linker error. 

6. I can read the ./configure  and make outputs but it is hard for me manually find WHERE is the referenced library file.

My BASIC "concept question"  is – if I run "install" WHERE would Linux put   ANY library , conceptually.  

7.  I can compile / link "bluetooth" includes – so WHO (Linux OS , bluez) installed them?

As always . I will greatly appreciate any help. 

Cheers 
Vaclav 


modified 20-Mar-19 23:43pm.

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.