This wrapper library is included in debian based systems (can be installed with: apt-get install libmatthew-io-java), so no self-compiling of any stuff is required.
This library has been tested with Ubuntu 16.04.4 (AMD64) and bluez library 5.48.
Starting with version 0.1.0 of this library Java 8 is required (previous version used Java 7).
To build a newer bluez-library for Ubuntu (16.04 has an older version than 5.48):
- Download new bluez library from http://www.bluez.org/download/
- Install Ubuntu build essentials:
sudo apt-get install build-essential
- Install required additional dependencies:
sudo apt-get install libdbus-1-dev libudev-dev libical-dev libreadline-dev checkinstall libglib2.0-dev
- Extract the downloaded bluez-tarball:
tar xfvJ bluez-5.48.tar.xz
- Run ./configure in the extracted bluez tarball:
./configure --prefix=/usr --libexecdir=/usr/lib --enable-manpages
- run checkinstall in bluez tarball directory:
- Answer 'y' to question if default docs should be created
- Enter a description (e.g.
New bluez library), press enter and then CTRL+D
- In checkinstall:
Go to Menu option 13 (Replaces)
bluez-obexd, bluez-cups, bluez-hcidump, bluez-btsco, bluez-tools
- Press Enter to start the build
- Install the generated .deb files:
sudo dpkg -i bluez_5.48-1_amd64.deb