2011/12/14 Vivien Malerba <[email protected]>: > > > On 14 December 2011 16:17, Faghmie Davids <[email protected]> > wrote: >> >> Hi, >> >> I have compiled and installed libgda-5.0. However when I try to compile >> my vala project against the new vapi, I get the following error. >> >> >> >> libgda-5.0.vapi:280.75-280.77: error: The symbol `Xml' could not be >> found >> public static Gda.DataModel new_xml_node ([CCode (type = >> "xmlNodePtr")] Xml.Node* node); >> >> ^^^ >> libgda-5.0.vapi:721.65-721.67: error: The symbol `Xml' could not be >> found >> public bool load_data_from_xml ([CCode (type = >> "xmlNodePtr")] >> Xml.Node* node) throws GLib.Error; >> >> ^^^ >> libgda-5.0.vapi:817.60-817.62: error: The symbol `Xml' could not be >> found >> public Set.from_spec_node ([CCode (type = "xmlNodePtr")] >> Xml.Node* >> xml_spec) throws GLib.Error; >> >> ^^^ >> libgda-5.0.vapi:1168.69-1168.71: error: The symbol `Xml' could not be >> found >> public bool add_data_from_xml_node ([CCode (type = >> "xmlNodePtr")] >> Xml.Node* node) throws GLib.Error; >> >> ^^^ >> libgda-5.0.vapi:2062.109-2062.111: error: The symbol `Xml' could not be >> found >> public static bool utility_data_model_dump_data_to_xml >> (Gda.DataModel >> model, [CCode (type = "xmlNodePtr")] Xml.Node* parent, [CCode >> (array_length_cname = "nb_cols", array_length_pos = 3.5)] int[]? cols, >> [CCode (array_length_cname = "nb_rows", array_length_pos = 4.5)] int[]? >> rows, bool use_col_ids); >> >> ^^^ >> libgda-5.0.vapi:2066.102-2066.104: error: The symbol `Xml' could not be >> found >> public static bool utility_holder_load_attributes (Gda.Holder >> holder, >> [CCode (type = "xmlNodePtr")] Xml.Node* node, GLib.SList<Gda.DataModel> >> sources) throws GLib.Error; >> >> ^^^ >> libgda-5.0.vapi:2108.77-2108.79: error: The symbol `Xml' could not be >> found >> public static GLib.Value value_new_from_xml ([CCode (type = >> "xmlNodePtr")] Xml.Node* node); >> >> >> >> Can someone please assist? > > > I don't know enough about Vala to help you here, but Daniel, can you help > with this? >
Sure. You must include at least the --pkg switches required by GDA Vala bindings and your proyect. Then you must compile you code with the following command: valac --pkg libxml-2.0 --pkg libgda-5.0 $(YOUR_SOURCES_FILES) Refer to for a full example and compile options: https://live.gnome.org/Vala/GDA For an example on how to create a Vala library using GDA, you can refer to libgda-vala branch (will be merged to master soon) or master: http://git.gnome.org/browse/libgda > Also, could you be more specific about which version of Libgda you use > (released version or branch from git)? > And command used to compile your code if problems continue. > Thanks, > > Vivien -- Trabajar, la mejor arma para tu superación "de grano en grano, se hace la arena" (R) (en trámite, pero para los cuates: LIBRE) _______________________________________________ gnome-db-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-db-list
