bluez
bluez copied to clipboard
ubuntu package - Question about experimental staus of midi
Hi there,
The distribution won't --enable-midi
until this feature comes out of 'experimental' status upstream
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1713017
So I was just wondering if you already had some plans about that, or further requirement for testing, or whatever else that is stopping this from happening upstream. Thank you.
Please also go comment on the launchpad bug, if / when you have anything further to add about this matter. Thank you.
In the meantime, until (until it's officially supported), for anybody else here are the steps for recompiling the packages on ubuntu (source):
# ======
# install bluetooth midi bluez
# build package dependancies
sudo apt install -y build-essential debhelper fakeroot wget dh-autoreconf flex bison libdbus-glib-1-dev libglib2.0-dev libcap-ng-dev udev libudev-dev libreadline-dev libical-dev check dh-systemd libebook1.2-dev libasound2-dev
# get currently installed version of bluez on this system
_ubuntu_version="$(apt show bluez 2>&1 | grep -i "version: " | cut -d" " -f2)"
_upstream_version="$(echo "$_ubuntu_version" | cut -d- -f1)"
# get apt source archive from launchpad
mkdir -p ~/.dev/bluez-midi-ubuntu && cd ~/.dev/bluez-midi-ubuntu
wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez_${_upstream_version}.orig.tar.xz
wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez_${_ubuntu_version}.debian.tar.xz
ls -l
# unpack upstream version
tar xJf bluez_${_upstream_version}.orig.tar.xz
cd bluez-${_upstream_version}
# unpack ubuntu dist over the top
tar xJf ../bluez_${_ubuntu_version}.debian.tar.xz
# to enable midi compiler flag when running ./configure
sed -i 's/\(--enable-usb\)/\1 --enable-midi/' debian/rules
# build packages
dpkg-buildpackage -rfakeroot -b
cd ..
# install packages
sudo dpkg -i bluez*.deb libbluetooth*.deb
sudo service bluetooth restart
I was trying to connect an ESP32 to my Ubuntu box using BLE and use it as a MIDI device. I guess this is the problem... It would be nice if it worked out-of-the-box :/