<div dir="ltr">I guess I should have mentioned, the problem is that I am not sure how to correctly link in the <dbus/dbus-glib.h> library.<br><br>Any help is appreciated.<br><br>Thanks.<br><br>Dorian<br><br><div class="gmail_quote">
On Tue, Aug 5, 2008 at 2:33 PM, Dorian Perkins <span dir="ltr"><<a href="mailto:dperkins@google.com">dperkins@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hello All,<br><br>I am trying to run the following example from the PackageKit FAQ and I cannot get it to compile. What compilation flags should I be using? Are there any extra libraries (not standard with PackageKit) that I may need? Thanks.<br>
<br>"<br><pre>#include <dbus/dbus-glib.h><br><br>DBusGConnection *connection;<br>DBusGProxy *proxy;<br>GError *error = NULL;<br>gboolean ret;<br><br>connection = dbus_g_bus_get (DBUS_BUS_SESSION, NULL);<br>proxy = dbus_g_proxy_new_for_name (connection,<br>
"org.freedesktop.PackageKit",<br> "/org/freedesktop/PackageKit",<br> "org.freedesktop.PackageKit");<br>/* execute sync method */<br>
ret = dbus_g_proxy_call (proxy, "InstallPackageName", &error,<br> G_TYPE_STRING, "openoffice-clipart",<br> G_TYPE_INVALID, G_TYPE_INVALID);<br>if (!ret) {<br>
g_warning ("failed: %s", error->message);<br> g_error_free (error);<br>}</pre>"<br></div>
</blockquote></div><br></div>