did you get any success? Regards,R On Tue, Jun 1, 2021 at 1:30 PM Kenny Bian <kennybian@xxxxxxxxx> wrote: > > I managed to build BlueZ 5.50 by using Ubuntu 18.04. I did the cross > compilation for the code for the armhf architecture. > > I copied the build folder to the embedded Ubuntu board. I then run > "make install" but get errors: > checking whether the C compiler works... no > configure: error: in `/home/user/bluez-5.50': > configure: error: C compiler cannot create executables > See `config.log' for more details > Makefile:3310: recipe for target 'config.status' failed > make: *** [config.status] Error 77 > > I then tried to manually install the build on the board. I tried "make > install" on my VirtualBox Ubuntu Desktop. So I used the similar way to > install the build(all of the folders are already created): > sudo /bin/bash ./libtool --mode=install /usr/bin/install -c > client/bluetoothctl monitor/btmon tools/rctest tools/l2test > tools/l2ping tools/bccmd tools/bluemoon tools/hex2hcd > tools/mpris-proxy tools/btattach '/usr/bin' > sudo /bin/bash ./libtool --mode=install /usr/bin/install -c > src/bluetoothd obexd/src/obexd '/usr/lib/bluetooth' > sudo /usr/bin/install -c profiles/cups/bluetooth /usr/lib/cups/backend/bluetooth > sudo /usr/bin/install -c -m 644 src/bluetooth.conf '/etc/dbus-1/system.d' > sudo /usr/bin/install -c -m 644 obexd/src/org.bluez.obex.service > '/usr/share/dbus-1/services' > sudo /usr/bin/install -c -m 644 src/org.bluez.service > '/usr/share/dbus-1/system-services' > sudo /usr/bin/install -c -m 644 tools/rctest.1 tools/l2ping.1 > tools/bccmd.1 tools/btattach.1 tools/hid2hci.1 '/usr/share/man/man1' > sudo /usr/bin/install -c -m 644 src/bluetoothd.8 '/usr/share/man/man8' > sudo /usr/bin/install -c -m 644 tools/97-hid2hci.rules '/lib/udev/rules.d' > sudo /usr/bin/install -c -m 644 src/bluetooth.service '/lib/systemd/system' > sudo /usr/bin/install -c -m 644 obexd/src/obex.service '/usr/lib/systemd/user' > sudo /bin/bash ./libtool --mode=install /usr/bin/install -c > tools/hid2hci '/lib/udev' > > My questions are: > 1. How to install the build on the board? "make install" doesn't work. > 2. How can I tell if the build is installed correctly? > 3. How can I verify if the BlueZ 5.50 works or not? > 4. I tried "sudo btattach -B /dev/ttymxc2 -S 921600", but btattach doesn't exit: > Attaching Primary controller to /dev/ttymxc2 > Switched line discipline from 0 to 15 > Device index 0 attached > 5. I also tried "sudo /usr/libexec/bluetooth/bluetoothd". There is no > output. "bluetoothd" doesn't exit either. By the way, "bluetoothd" > doesn't run after the build is installed. So I try to manually run it. > 6. By running "/usr/libexec/bluetooth/bluetoothd -v", I got "5.50". > By running "/usr/libexec/bluetooth/bluetoothd -d", I got: > D-Bus setup failed: Connection ":1.50" is not allowed to own the > service "org.bluez" due to security policies in the configuration file > > Thanks in advance!