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