wintersteiger/wlmcd

Also need to install libdbus-1-dev

Closed this issue · 3 comments

remay commented

Followed the instructions for dependencies from the readme:

sudo apt install build-essential libncurses-dev libssl-dev libgpiod-dev wiringpi libdbus-c++-dev

on a clean Raspberry Pi OS Lite, and got this for each compiled file when doing make all:

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

Needed to sudo apt install libdus-1-dev to resolve.

But I still get this fatal error

g++ -g -MMD -MP -I . -Wno-psabi -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include ble100.cpp -c -o ble100.o
ble100.cpp:9:10: fatal error: core/dbus/bus.h: No such file or directory
 #include <core/dbus/bus.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:15: ble100.o] Error 1

Any idea what else I might be missing?

remay commented

Solved: seem I needed sudo apt install libdbus-cpp-dev as well

Oh yes, that's the wrong package and I forgot to update the readme (done now). You want libdbus-1-dev and libdbus-cpp-dev.

remay commented

Thanks for the quick response. Compilation now fine. Next up to see if I can see any messages from my Radbots. Do you have a way for me to buy you a beer (e.g. a paypal email address)