make fails to build due to missing includes for dbus on Ubuntu 16.04 LTS
$ make
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/home/chp/devel/little_blue_man'
"make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux/littleblueman
make[2]: Entering directory '/home/chp/devel/little_blue_man'
mkdir -p build/Debug/GNU-Linux
rm -f "build/Debug/GNU-Linux/lbm_icon.o.d"
gcc -lX11 -lXft -lfontconfig -ldbus-1 -lpthread -Wall -c -g -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -std=c11 -MMD -MP -MF "build/Debug/GNU-Linux/lbm_icon.o.d" -o build/Debug/GNU-Linux/lbm_icon.o lbm_icon.c
In file included from sdb_bus_bt.h:35:0,
from lbm_icon.h:36,
from lbm_icon.c:27:
/usr/include/dbus-1.0/dbus/dbus.h:29:33: fatal error: dbus/dbus-arch-deps.h: No such file or directory
compilation terminated.
nbproject/Makefile-Debug.mk:98: recipe for target 'build/Debug/GNU-Linux/lbm_icon.o' failed
make[2]: *** [build/Debug/GNU-Linux/lbm_icon.o] Error 1
make[2]: Leaving directory '/home/chp/devel/little_blue_man'
nbproject/Makefile-Debug.mk:71: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory '/home/chp/devel/little_blue_man'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2
The missing include path is:
pkg-config --cflags dbus-1
-I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include