trobanga / flutter_btleplug

BSD 3-Clause "New" or "Revised" License
29 stars 9 forks source link

Fix build_and_test workflow #11

Closed trobanga closed 1 year ago

trobanga commented 1 year ago

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

trobanga commented 1 year ago

done