When cross compiling for macOS with depends, we do not compile with dbus.
Though, bitcoin_qt.m4
checks via pkg-config for a Qt5DBUS.pc
on the host. If the host has a qt5_dbus system library (regardless of if the depends qt library set), USE_DBUS
gets enabled (but is actually not compiled via depends) leading to compile errors.
This fixes the error by always avoiding DBUS notification on macOS.
Another (eventually better) way to fix this would be to avoid detection of host qt pkg-config packages when cross compiling.