public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] DBus error <dbus/dbus-arch-deps.h> is missing
@ 2007-10-05 12:52 rohit puri
  2007-10-05 13:02 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: rohit puri @ 2007-10-05 12:52 UTC (permalink / raw)
  To: bluez-users


[-- Attachment #1.1: Type: text/plain, Size: 3169 bytes --]

hi all

whenever I am compiling my program of
dbus for interprocess communication .i am getting following error .I have
downloaded a latest version of dbus 1.1.2


Here I am writing the program and all the errors I am facing
#include <stdio.h>
#include <stdlib.h>
#include <dbus-1.0/dbus/dbus.h>
int main(int argc, char **argv)
{
    DBusConnection *conn;
    DBusMessage *msg, *reply;
    const char *name;
    conn = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
    msg = dbus_message_new_method_call("org.bluez", "/org/bluez/hci0",
                                                   "org.bluez.Adapter ",
"GetName");
    reply = dbus_connection_send_with_reply_and_block(conn, msg, -1, NULL);
    dbus_message_get_args(reply, NULL, DBUS_TYPE_STRING, &name,
DBUS_TYPE_INVALID);
    printf("%s\n", name);
    dbus_message_unref(msg);
    dbus_message_unref(reply);
    dbus_connection_close(conn);
    return 0;
}


errors
In file included from dbus2.c:3:
/usr/include/dbus-1.0/dbus/dbus.h:29:33: error: dbus/dbus- arch-deps.h: No
such file or directory
/usr/include/dbus-1.0/dbus/dbus.h:30:31: error: dbus/dbus-address.h: No such
file or directory
/usr/include/dbus-1.0/dbus/dbus.h:31:27: error: dbus/dbus-bus.h: No such
file or directory
/usr/include/dbus-1.0/dbus/dbus.h:32:34: error: dbus/dbus-connection.h: No
such file or directory
/usr/include/dbus-1.0/dbus/dbus.h:33:30: error: dbus/dbus-errors.h: No such
file or directory
/usr/include/dbus-1.0 /dbus/dbus.h:34:30: error: dbus/dbus-macros.h: No such
file or directory
/usr/include/dbus-1.0/dbus/dbus.h:35:31: error: dbus/dbus-message.h: No such
file or directory
/usr/include/dbus-1.0/dbus/dbus.h:36:28: error: dbus/dbus- misc.h: No such
file or directory
/usr/include/dbus-1.0/dbus/dbus.h:37:36: error: dbus/dbus-pending-call.h: No
such file or directory
/usr/include/dbus-1.0/dbus/dbus.h:38:32: error: dbus/dbus-protocol.h: No
such file or directory
/usr/include/dbus-1.0/dbus/dbus.h:39:30: error: dbus/dbus-server.h: No such
file or directory
/usr/include/dbus-1.0/dbus/dbus.h:40:30: error: dbus/dbus-shared.h: No such
file or directory
/usr/include/dbus-1.0/dbus/dbus.h:41:33: error: dbus/dbus- signature.h: No
such file or directory
/usr/include/dbus-1.0/dbus/dbus.h:42:31: error: dbus/dbus-threads.h: No such
file or directory
/usr/include/dbus-1.0/dbus/dbus.h:43:29: error: dbus/dbus-types.h: No such
file or directory
dbus2.c: In function 'main':
dbus2.c:10: error: 'DBusConnection' undeclared (first use in this function)
dbus2.c:10: error: (Each undeclared identifier is reported only once
dbus2.c:10: error: for each function it appears in.)
dbus2.c:10: error: 'connection' undeclared (first use in this function)
dbus2.c:12: error: 'DBusMessage' undeclared (first use in this function)
dbus2.c:12: error: 'message' undeclared (first use in this function)
dbus2.c:12: error: 'reply' undeclared (first use in this function)
dbus2.c:16: error: 'DBUS_BUS_SYSTEM' undeclared (first use in this function)
dbus2.c:22: error: 'DBUS_TYPE_STRING' undeclared (first use in this
function)
dbus2.c:22: error: 'DBUS_TYPE_INVALID' undeclared (first use in this
function)



can somebody help me out



thanks in advance

[-- Attachment #1.2: Type: text/html, Size: 3966 bytes --]

[-- Attachment #2: Type: text/plain, Size: 314 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] DBus error <dbus/dbus-arch-deps.h> is missing
  2007-10-05 12:52 [Bluez-users] DBus error <dbus/dbus-arch-deps.h> is missing rohit puri
@ 2007-10-05 13:02 ` Marcel Holtmann
  2007-10-05 13:40   ` rohit puri
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2007-10-05 13:02 UTC (permalink / raw)
  To: BlueZ users

Hi Rohit,

> whenever I am compiling my program of 
> dbus for interprocess communication .i am getting following error .I
> have downloaded a latest version of dbus 1.1.2
> 
> 
> Here I am writing the program and all the errors I am facing 
> #include <stdio.h>
> #include <stdlib.h>
> #include <dbus-1.0/dbus/dbus.h>

you includes are not complete. You can't use the "dbus-1.0" prefix, you
have to change the include path (-I).

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] DBus error <dbus/dbus-arch-deps.h> is missing
  2007-10-05 13:02 ` Marcel Holtmann
@ 2007-10-05 13:40   ` rohit puri
  2007-10-06  9:24     ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: rohit puri @ 2007-10-05 13:40 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 1874 bytes --]

Hi Marcel,

Thanks very much for your assistance but still some errors are there
even I have changed the include path to -1

'DBusConnection' undeclared (first use in this function)
dbus2.c:10: error: (Each undeclared identifier is reported only once
dbus2.c:10: error: for each function it appears in.)
dbus2.c:10: error: 'connection' undeclared (first use in this function)
dbus2.c:12: error: 'DBusMessage' undeclared (first use in this function)
dbus2.c:12: error: 'message' undeclared (first use in this function)
dbus2.c:12: error: 'reply' undeclared (first use in this function)
dbus2.c:16: error: 'DBUS_BUS_SYSTEM' undeclared (first use in this function)
dbus2.c:22: error: 'DBUS_TYPE_STRING' undeclared (first use in this
function)
dbus2.c:22: error: 'DBUS_TYPE_INVALID' undeclared (first use in this
function)

Regards,
Rohit
On 10/5/07, Marcel Holtmann <marcel@holtmann.org> wrote:
>
> Hi Rohit,
>
> > whenever I am compiling my program of
> > dbus for interprocess communication .i am getting following error .I
> > have downloaded a latest version of dbus 1.1.2
> >
> >
> > Here I am writing the program and all the errors I am facing
> > #include <stdio.h>
> > #include <stdlib.h>
> > #include <dbus-1.0/dbus/dbus.h>
>
> you includes are not complete. You can't use the "dbus-1.0" prefix, you
> have to change the include path (-I).
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>

[-- Attachment #1.2: Type: text/html, Size: 2519 bytes --]

[-- Attachment #2: Type: text/plain, Size: 314 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] DBus error <dbus/dbus-arch-deps.h> is missing
  2007-10-05 13:40   ` rohit puri
@ 2007-10-06  9:24     ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2007-10-06  9:24 UTC (permalink / raw)
  To: BlueZ users

Hi Rohit,

> Thanks very much for your assistance but still some errors are there
> even I have changed the include path to -1
> 
> 'DBusConnection' undeclared (first use in this function) 
> dbus2.c:10: error: (Each undeclared identifier is reported only once
> dbus2.c:10: error: for each function it appears in.)
> dbus2.c:10: error: 'connection' undeclared (first use in this
> function)

don't ask me. You might wanna start using pkg-config to get the right
paths for the header files.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-06  9:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-05 12:52 [Bluez-users] DBus error <dbus/dbus-arch-deps.h> is missing rohit puri
2007-10-05 13:02 ` Marcel Holtmann
2007-10-05 13:40   ` rohit puri
2007-10-06  9:24     ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox