<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>