This guide is for all of you Bluetooth tweakers. Since Bluetooth is really a dodgy protocol and since the standard implementation in Linux leaves a lot to be desired, if you're like me sooner or later you'll want to dive into fixing bugs and tweaking. Bluez-tools is a decent utility library which makes calling Bluez functionality a bit easier, but it does lack some power.
This guide shows you how to build the project on Mint 15, and hopefully it is future proof for the next few versions.
1. Download the source: https://code.google.com/p/bluez-tools/
2. Install dependent libraries using Synaptic : libglib2.0-cil-dev AND libglib2.0-dev_ AND libdbus-glib-1-dev.
3. One more to get if it isn't installed: libreadline-dev
4. Extract the source to a directory.
5. Make your changes to any .c file you want, all of these reside in the /src directory.
7. Execute pkg-config --libs --cflags dbus-1 dbus-glib-1 glib-2.0
8. Use the output of the command in the ./configure e.g.: env LIBS="-I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0" ./configure
NOTE: Don't edit configure file, just run the above example with your output from the bash terminal.
9. Execute make
10. Remove Bluez-tools if you already have it installed via package manager
11. sudo make install
12. select the files in /usr/local/bin that are the output and change ownership to your user
That's it, from that point on you will see your modified code.