28 July 2010

Bluetooth Love

The newly released KDE bluetooth system, BlueDevil, has made life a million fold easier. Simply put, KDE software, namely KBluetooth, couldn't do anything usefully bluetooth-related before BlueDevil came and saved us.

I compiled some code:

sudo apt-get install kdelibs5-dev kdebase-workspace-dev checkinstall -y
git clone git://projects.ufocoders.com/libbluedevil
cd libbluedevil
cmake.
make
sudo checkinstall
cd ../
git clone git://gitorious.org/bluedevil/bluedevil.git
cmake . -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
make
sudo checkinstall

Then, I went into the System Settings -> Startup and Shutdown -> Service Manager, clicked on BlueDevil, stopped and started the service. Et, voila!

I can now connect my $20 bluetooth headset, with full audio support with which to listen to Amarok and make Skype calls! Thank you, ufocoders, and KDE in general.

See http://www.afiestas.org/bluedevil-the-new-kde-bluetooth-stack-is-here/

9 comments:

Past said...

Goot how-to, but i tihink better use use "checkinstall" instead "make install"

Sam said...

Thanks for the tip!

I didn't know about this tool at all. It may solve an issue I was having too (deploying on Kubuntu machines at work)!

Sam said...

Nevermind... it doesn't seem these packages are very portable. :/

Michal said...

Hi,

I tried your 'how-to' but I got errors in the second 'make':

[8%] Building CXX object src/actionplugins/audio/CMakeFiles/audioactionplugin.dir/audio.o
/home/mp/temp/bluedevil/src/actionplugins/audio/audio.cpp:21:29: error: audio_interface.h: No such file or directory
/home/mp/temp/bluedevil/src/actionplugins/audio/audio.cpp: In member function ‘virtual void AudioPlugin::startAction()’:
/home/mp/temp/bluedevil/src/actionplugins/audio/audio.cpp:42: error: ‘OrgBluezAudioInterface’ was not declared in this scope
/home/mp/temp/bluedevil/src/actionplugins/audio/audio.cpp:42: error: ‘interface’ was not declared in this scope
/home/mp/temp/bluedevil/src/actionplugins/audio/audio.cpp:42: error: expected type-specifier before ‘OrgBluezAudioInterface’
/home/mp/temp/bluedevil/src/actionplugins/audio/audio.cpp:42: error: expected ‘;’ before ‘OrgBluezAudioInterface’
/home/mp/temp/bluedevil/src/actionplugins/audio/audio.cpp:46: error: incomplete type ‘QTimer’ used in nested name specifier
make[2]: *** [src/actionplugins/audio/CMakeFiles/audioactionplugin.dir/audio.o] Error 1
make[1]: *** [src/actionplugins/audio/CMakeFiles/audioactionplugin.dir/all] Error 2
make: *** [all] Error 2

I am on Kubuntu, KDE 4.4.2. Any tip?

Sam said...

First, it really works best with 4.5

Second, it sounds like you need a bluez package or an alsa/bluetooth package.

two said...
This comment has been removed by the author.
Sam said...

You need git to download the sources, there are no tarballs to deal with.

Anonymous said...

You are missing the line: "cd bluedevil"

Thank you for your guide. Works perfect with my bluetooth mouse on Kubuntu 10.04 with kde 4.4.2

Sam said...

Thankfully, this is included by default in kubuntu 10.10, so unless you have a reason not to, upgade asap!