error: failed to run custom build command for libdbus-sys v0.2.4
Caused by:
process didn't exit successfully: /home/runner/work/flutter_btleplug/flutter_btleplug/target/debug/build/libdbus-sys-f80e85a2e488d596/build-script-build (exit status: 101)
--- stderr
pkg_config failed: "pkg-config" "--libs" "--cflags" "dbus-1" "dbus-1 >= 1.6" did not exit successfully: exit status: 1
error: could not find system library 'dbus-1' required by the 'libdbus-sys' crate
--- stderr
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing dbus-1.pc' to the PKG_CONFIG_PATH environment variable No package 'dbus-1' found Package dbus-1 was not found in the pkg-config search path. Perhaps you should add the directory containingdbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
One possible solution is to check whether packages
'libdbus-1-dev' and 'pkg-config' are installed:
On Ubuntu:
sudo apt install libdbus-1-dev pkg-config
On Fedora:
sudo dnf install dbus-devel pkgconf-pkg-config
error: failed to run custom build command for
libdbus-sys v0.2.4
Caused by: process didn't exit successfully:
/home/runner/work/flutter_btleplug/flutter_btleplug/target/debug/build/libdbus-sys-f80e85a2e488d596/build-script-build
(exit status: 101)--- stderr pkg_config failed:
"pkg-config" "--libs" "--cflags" "dbus-1" "dbus-1 >= 1.6"
did not exit successfully: exit status: 1 error: could not find system library 'dbus-1' required by the 'libdbus-sys' crate--- stderr Package dbus-1 was not found in the pkg-config search path. Perhaps you should add the directory containing
dbus-1.pc' to the PKG_CONFIG_PATH environment variable No package 'dbus-1' found Package dbus-1 was not found in the pkg-config search path. Perhaps you should add the directory containing
dbus-1.pc' to the PKG_CONFIG_PATH environment variable No package 'dbus-1' foundOne possible solution is to check whether packages 'libdbus-1-dev' and 'pkg-config' are installed: On Ubuntu: sudo apt install libdbus-1-dev pkg-config On Fedora: sudo dnf install dbus-devel pkgconf-pkg-config