LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   BTSCO Configure Says Bluetooth.h isn't there..But it is! (http://www.linuxquestions.org/questions/linux-software-2/btsco-configure-says-bluetooth-h-isn%27t-there-but-it-is-460311/)

fortezza 07-02-2006 01:37 PM

BTSCO Configure Says Bluetooth.h isn't there..But it is!
 
Situation: With Bluetooth DUN and Bluetooth mouse working, get BTSCO bluetooth audio working to stream music to bluetooth earbuds.

Background:
Installed all alsa packages via Yum:
alsa-tools alsa-lib alsa-utils alsa-lib-devel

Installed all bluetooth packages via Yum:
bluez-libs bluez-pin bluez-utils bluez-hcidump bluez-utils-cups

Checked most out current version of btsco from cvs:
cvs -d:pserver:anonymous@bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa login

cvs -d:pserver:anonymous@bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa co btsco


OS Platform:
Fedora Core 5 , kernel 2.6.16-1.2133_FC5

Hardware Platform:
Dell Inspiron 1300


Problem:
After I change into the btsco folder with the current build. I run the ./bootstrap command with no problems.

When I run ./configure, its fails when checking for bluetooth header file:
checking for bluetooth/bluetooth.h usability... no
checking for bluetooth/bluetooth.h presence... no


However, if I run "locate bluetooth.h", I get two responses, one of them from my current running kernel's source tree:
/usr/src/kernels/2.6.16-1.2133_FC5-i686/include/net/bluetooth/bluetooth.h


Additional information:
I have tried reinstalling the bluez/bluetooth packages,and running ldconfig, to no avail. What I have not tried it installing the bluez source files, compiling and installing them by hand.

Here are two sites I am using as guidance for getting btsco compliled, installed, and loaded:
http://bluetooth-alsa.sourceforge.net/
http://www.linux.ie/articles/bluetoothheadset.php

Request:
Besides "help!", suggestions and pointers to helpful resources would be appreciate so I can at least try to get btsco to work.

fortezza 07-02-2006 08:20 PM

Making progress, I manually downloaded, compiled, and installed all of the bluez packages from their bluez.org Web site. Now BTSCO's bootstrap and configure scripts run with no problems, and make/etc also worked.

Now with the command "btsco <address>", I can play mono audio to the earbud headphones, but stereo is what I really want to hear.

Research in progress!

cs-cam 07-02-2006 08:38 PM

Good solution, just clarifying what the problem was for you so you know what to check for next time :)
Not a lot of apps look for includes from your kernel source tree, most start in /usr/include. bluez-libs has the file it was looking for in that prefix but it wasn't there because bluez-libs-devel wasn't installed (may not exist, don't know). By compiling bluez-libs from source, the header is now there for btsco to find :)

According the the Bluetooth-alsa page which I'm sure you've read, only a few headphones are capable of receiving a stereo signal. First thing to check, is yours one of the ones that can?

fortezza 07-02-2006 09:56 PM

Well, I got this command to work for stereo :
mpg123 --au - file.mp3 | ./a2play 00:0D:3C:30:32:AD

and this one for mono only:
aplay -B 1000000 -Dpcm.headphone file.wav

I don't see a way to make aplay handle mp3 format, otherwise it would be nice as you can use it's device ( pcm.headphone ) in xmms. I can use it now, but the output is all garbled, though I can make out some of the song that is playing amongst the garbling.

For the first option, I made a shell script that parses my playlist files and plays each one. That would be a middle-ground solution, except when it switches song,my bluetooth headphones will often just turn off. That forces me to reset the volume, reconnect, etc, each time a song changes. Not an optimal solution.

I'll decide if I want to mess with this anymore or just use my phone to stream audio. it has 2 gig free after programs, so it could hold a lot. Just then I will have to pay extra to use T-Mobile wireless WiFi since my phone will be tied up streaming music. *sigh*

fortezza 07-02-2006 10:09 PM

Quote:

Originally Posted by cs-cam
Good solution, just clarifying what the problem was for you so you know what to check for next time :)
Not a lot of apps look for includes from your kernel source tree, most start in /usr/include. bluez-libs has the file it was looking for in that prefix but it wasn't there because bluez-libs-devel wasn't installed (may not exist, don't know). By compiling bluez-libs from source, the header is now there for btsco to find :)

According the the Bluetooth-alsa page which I'm sure you've read, only a few headphones are capable of receiving a stereo signal. First thing to check, is yours one of the ones that can?


For the record, the bluetooth earbuds I am using are the Nokia HS-12w's. They are designed for stereo ( 2 earbuds, just like most media players ), so no worries there. They switch between audio and voice ( audio means music, in their terminology ) depending on there you receive or make a call while listening to music. They work fairly well with my Treo 650's audio gateway software, and are difficult to use for stereo audio on linux,but that is because that techology is just emerging on the linux platform. They work like a champ for mono audio, but that would make studying hard as it would not block out all the sounds around me. Hence my search for stereo.

cs-cam 07-03-2006 12:27 AM

Okay so what have you tried to send the stereo sound?

fortezza 07-03-2006 01:07 AM

Quote:

Originally Posted by cs-cam
Okay so what have you tried to send the stereo sound?

I use this command ( from above ):

mpg123 --au - file.mp3 | ./a2play 00:0D:3C:30:32:AD

to successfully send stereo sound to this device ( also from above ):
Nokia HS-12w's Bluetooth Stereo Earbuds


All times are GMT -5. The time now is 04:17 PM.