<div dir="ltr">I guess I should have mentioned, the problem is that I am not sure how to correctly link in the &lt;dbus/dbus-glib.h&gt; 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">&lt;<a href="mailto:dperkins@google.com">dperkins@google.com</a>&gt;</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>&quot;<br><pre>#include &lt;dbus/dbus-glib.h&gt;<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>

                             &quot;org.freedesktop.PackageKit&quot;,<br>                             &quot;/org/freedesktop/PackageKit&quot;,<br>                             &quot;org.freedesktop.PackageKit&quot;);<br>/* execute sync method */<br>

ret = dbus_g_proxy_call (proxy, &quot;InstallPackageName&quot;, &amp;error,<br>                         G_TYPE_STRING, &quot;openoffice-clipart&quot;,<br>                         G_TYPE_INVALID, G_TYPE_INVALID);<br>if (!ret) {<br>

        g_warning (&quot;failed: %s&quot;, error-&gt;message);<br>        g_error_free (error);<br>}</pre>&quot;<br></div>
</blockquote></div><br></div>