[maemo-developers] [maemo-developers] Include files for Dbus

From: Greg Morgan drkludge at cox.net
Date: Fri Jul 14 04:52:36 EEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ian Malcom wrote:
> Hi,
> 
> I'm stuck trying to figure out how to access dbus
> functionality from my code. The problem is that I'm
> not sure what files to include.
> 
> I have the following directory in scratchbox: 
> 
> /scratchbox/users/ian/targets/SDK_ARM/usr/include/dbus-1.0/dbus
> 
> Is this where the dbus include files are located? I'm
> confused because including dbus.h leads to a lot of
> "header file not found" error messages. Also, I'm
> suspicious about my setup because including libosso.h
> caused the following error messages:

Have you tried compiling the test application?
http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html#Building-applications
You might want to consider using the installer application if you are
still having problems. Perhaps you could point to the steps you used to
set up the scratchbox environment.  You may have missed a critical
environment setup step since you cannot find the header files.

> 
> In file included from app4.c:2:
> /usr/include/libosso.h:34:23: dbus/dbus.h: No such
> file or directory
> /usr/include/libosso.h:35:32: dbus/dbus-protocol.h: No
> such file or directory
> In file included from app4.c:2:
> /usr/include/libosso.h:238: error: syntax error before
> '*' token
> app4.c: In function `main':
> app4.c:6: error: `DBusConnection' undeclared (first
> use in this function)
> app4.c:6: error: (Each undeclared identifier is
> reported only once
> app4.c:6: error: for each function it appears in.)
> app4.c:6: error: `connection' undeclared (first use in
> this function)
> 
> Any help, or a pointer to an example that uses dbus,
> would be much appreciated!

http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html#LibOSSO-library

Some of the tutorial links are broken right now.  You can find one of
the dbus tutorial files here
https://stage.maemo.org/svn/maemo/projects/tools/trunk/maemo_testing/maemo-examples/example_libosso.c
.


> 
> Thanks!
> Ian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEtvjkxyxe5L6mr7IRAnovAJsFqvHmJttf7VPa2aY1CbTcrNKgDwCfSTQQ
DcKRg6emGM3AWPzy2ShMO1w=
=JPf+
-----END PGP SIGNATURE-----

More information about the maemo-developers mailing list