Thanks for the quick reply, Evan. To answer some of your questions:
Evan Nemerson <[email protected]> wrote:
Sometimes you may have to install an extra package, but the GIRs should
be available.
I'll probably open a ticket with Ubuntu about this.
You should pass the pkg-config names of whatever dependencies you need
to valac. valac will parse those VAPIs first, and there is an
annotation which will tell valac what GIR namespace the Vala namespace
corresponds to.
At first I thought you'd figured it out, but I'm still seeing the problem. The
.gir file in question has these annotations inside it:
<include name="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
To see my problem, rename GLib-2.0.gir. I use a simple Vala program (Vala
0.17.5 installed):
void main() {
}
If I build like this, no problem:
valac test.vala --pkg=glib-2.0 --pkg=gobject-2.0 --pkg=gio-2.0
If I build like this, I get the error messages I mentioned earlier:
valac test.vala --pkg=glib-2.0 --pkg=gobject-2.0 --pkg=gio-2.0
--pkg=DBusGLib-1.0
I do see the VAPI annotations in the glib-2.0.vapi file (and the others), but
it looks like valac isn't properly making the connection you mentioned.
-- Jim_______________________________________________
vala-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/vala-list