Add
pkg-config --cflags dbus-1 dbus-glib-1 glib-2.0
to Project > Compiler settings > Other options.
Then add
pkg-config --libs dbus-1 dbus-glib-1 glib-2.0
to Project > Other linker options.
That should solve your problem. :)
Arrgh.. I missed to write intermediate steps. :x
It should be-
Add
`pkg-config --cflags dbus-1 dbus-glib-1 glib-2.0`
to Project > Build options > Compiler settings > Other options.
Then add
`pkg-config --libs dbus-1 dbus-glib-1 glib-2.0`
to Project > Build options > Linker settings > Other linker options.
I'm very sorry for the missed steps. And don't forget to add the backticks '`'. :)
Don't add them to Settings > Compilers and debuggers section as they will affect all other projects.