GNOME Bugzilla – Bug 623526
Can't compile with Gtk-2.0.gir
Last modified: 2012-06-26 06:43:16 UTC
I don't know how good the gir support is supposed to be yet. But a trivial program: public static int main(string [] args) { return 0; } Has thousands of errors if compiled with --pkg Gtk-2.0 instead of --pkg gtk+-2.0. The errors are all like: error: The symbol `Atk' could not be found error: The symbol `Gdk' could not be found error: The symbol `GdkPixbuf' could not be found error: The type name `GLib.Icon' could not be found error: The symbol `Gdk' could not be found error: The symbol `Atk' could not be found error: The symbol `Gdk' could not be found It seems that when resolving the gir attributes, it is not looking at included gir files and their namespaces. I've tried the gir file from gtk 2.20 and gtk trunk.
Created attachment 166501 [details] [review] Support nested GIR includes. Fixes bug 623526.
Comment on attachment 166501 [details] [review] Support nested GIR includes. Due to the merge of switch-to-gir branch, this became obsolete. Now it's possible to use Gtk-2.0.gir but not that straightforward due to <packages> mismatch upstream.
Resolving as obsolete as per above comment.