Click here to Skip to main content
15,885,278 members
Home / Discussions / Linux Programming
   

Linux Programming

 
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.

AnswerRe: Developing bluetooth app using "bluez" Pin
Richard MacCutchan5-Mar-19 6:32
mveRichard MacCutchan5-Mar-19 6:32 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 6:46
Vaclav_5-Mar-19 6:46 
GeneralRe: Developing bluetooth app using "bluez" Pin
Richard MacCutchan5-Mar-19 6:50
mveRichard MacCutchan5-Mar-19 6:50 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 9:03
Vaclav_5-Mar-19 9:03 
GeneralRe: Developing bluetooth app using "bluez" Pin
Richard MacCutchan5-Mar-19 22:45
mveRichard MacCutchan5-Mar-19 22:45 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 7:39
Vaclav_5-Mar-19 7:39 
AnswerRe: Developing bluetooth app using "bluez" Pin
k50545-Mar-19 9:44
mvek50545-Mar-19 9:44 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 13:37
Vaclav_5-Mar-19 13:37 
GeneralRe: Developing bluetooth app using "bluez" Pin
k50546-Mar-19 6:57
mvek50546-Mar-19 6:57 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 16:02
Vaclav_5-Mar-19 16:02 
GeneralRe: Developing bluetooth app using "bluez" Pin
k50546-Mar-19 8:50
mvek50546-Mar-19 8:50 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_6-Mar-19 11:58
Vaclav_6-Mar-19 11:58 
QuestionLinking to library Pin
Vaclav_3-Mar-19 5:22
Vaclav_3-Mar-19 5:22 
AnswerRe: Linking to library Pin
Richard MacCutchan3-Mar-19 5:53
mveRichard MacCutchan3-Mar-19 5:53 
GeneralRe: Linking to library Pin
Vaclav_3-Mar-19 7:08
Vaclav_3-Mar-19 7:08 
AnswerRe: Linking to library Pin
k50543-Mar-19 6:03
mvek50543-Mar-19 6:03 
GeneralRe: Linking to library Pin
Vaclav_3-Mar-19 7:09
Vaclav_3-Mar-19 7:09 

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.