How to compile and run, test dbus programs in written in C?
Vivien Malerba
vmalerba at gmail.com
Thu Aug 23 01:56:48 PDT 2012
Hi!
I'm not sure this tutorial is up to date with the current state of DBus
usage (I guess for instance that it makes you use libdbus whereas now it's
recommended to use gdbus which is part of GIO).
For more information I suggest you see GIO's documentation about DBus at
http://developer.gnome.org/gio/stable/ and the examples in its source code,
see http://git.gnome.org/browse/glib/tree/gio/tests (or download GLib's
source code).
Hope this helps,
Regards,
Vivien
On 23 August 2012 10:04, <pramoda.subraya at wipro.com> wrote:
> Hi,****
>
> ** **
>
> I have compiled the programs which I got from
> http://www.linuxquestions.org/questions/programming-9/using-dbus-in-c-without-glib-708422/
> ****
>
> ****
>
> But I am getting errors like ****
>
> /usr/include/dbus-1.0/dbus/dbus.h:30:2: #error "Please define
> DBUS_API_SUBJECT_TO_CHANGE to acknowledge your understanding that D-BUS
> hasn't reached 1.0 and is subject to protocol and API churn. See the README
> for a full explanation."****
>
> dbus1.c: In function `main':****
>
> dbus1.c:32: error: `DBUS_NAME_FLAG_REPLACE_EXISTING' undeclared (first use
> in this function)****
>
> dbus1.c:32: error: (Each undeclared identifier is reported only once****
>
> dbus1.c:32: error: for each function it appears in.)****
>
> dbus1.c:37: error: `DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER' undeclared
> (first use in this function)****
>
> ** **
>
> Please help me to solve and run.****
>
> ** **
>
> If it is compiled successfully, how to run and test ?****
>
> ** **
>
> ** **
>
> *Regards,*
>
> *Pramod*
>
> *Wipro Technologies | Cell: +91 98459 75870 | Direct: +91 80 30292824 |
> email: Pramoda.Subraya at wipro.com *
>
> ** **
>
> * Please do not print this email unless it is absolutely necessary. *****
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>
> www.wipro.com
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120823/d0c0c4ba/attachment.html>
More information about the dbus
mailing list