I am new to developing on linux. I would like to write applications that talk on the dbus so I am currently learning the basic concepts of interacting with the dbus.
I'm working on a new-ish raspberry pi 3; i can see dbus folders on various locations on the filesystem. However, when i
#include <dbus/bus.h>
i already get an error: "unresolved include file" which leads me to believe the library files or developer options are not enabled for the dbus?
I wanted to find out how i can enable the dbus for development?
Thanks in advance.
24 aug 2017 EDIT: I believe i have the necessary library files i.e. (but not limited to...)
/usr/lib/arm-linux-gnueabihf/libdbus-1.a
/usr/include/dbus-1.0/dbus/dbus.h
but how do i point my NetBeans IDE to them while developing on the remote host (the pi)??
28 Aug 2017 EDIT: After installing the dbus-dev libraries. I removed and re-added my raspberry pi as a local host on my NetBeans IDE. Now, when i
#include <dbus/dbus.h>
Or
#include <dbus.h>
I receive the error: fatal error: dbus/dbus.h: No such file or directory
So, i ended up having to add /usr/include/dbus-1.0;/usr/lib/arm-linux-gnueabihf/dbus-1.0/include in my netbeans project properties - build - c compiler - include directories... which i hope is ok to do bearing in mind i am working on a remote host...
This project now builds successfully. And i have enabled X11 forwarding on my remote host properties. However, when running i receive the following: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.