LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-02-2006, 12:37 PM   #1
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
Question 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 -dserver:anonymous@bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa login

cvs -dserver: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.
 
Old 07-02-2006, 07:20 PM   #2
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Original Poster
Rep: Reputation: 30
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!
 
Old 07-02-2006, 07:38 PM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
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?
 
Old 07-02-2006, 08:56 PM   #4
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Original Poster
Rep: Reputation: 30
Unhappy

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*
 
Old 07-02-2006, 09:09 PM   #5
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Original Poster
Rep: Reputation: 30
Lightbulb

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.
 
Old 07-02-2006, 11:27 PM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Okay so what have you tried to send the stereo sound?
 
Old 07-03-2006, 12:07 AM   #7
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Original Poster
Rep: Reputation: 30
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
 
  


Reply

Tags
bluetooth, bluez


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nokia 6600 bluetooth modem - how to configure heruka Mandriva 0 02-12-2006 02:11 AM
[root@Linuxboy magicolor2430DL-1.1.0]# ./configure ./configure: No such file or ... anseK Mandriva 7 01-02-2006 04:21 PM
Configure dhcpd (Configure DHCP Server) hanserver2004 General 1 08-16-2004 01:39 PM
How to use GNU autoconf to generate a new configure from configure.in ?? vanhelsing Programming 5 08-05-2004 10:02 AM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM


All times are GMT -5. The time now is 06:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration