Hello, Can anyone help me with this problem?
I followed the instructions on http://live.gnome.org/Vala/Bindings, but the generated vapi file has incorrect header file name. I corrected the header file name, but in either case I get a compiler error that the header file cannot be found. I am generating a vapi file from couchdb-glib because the files referenced on the external bindings page appear to be incorrect. I also tried binding to the gir file, but certain methods have introspectable flags set to zero, which hides the methods. The couchdb-glib project does not have vapi bindings in the repository. I ran the following commands: $ echo "/usr/include/couchdb-glib-1.0/"> couchdb-glib-1.0.files $ echo "/usr/lib/libcouchdb-glib-1.0.so">> couchdb-glib-1.0.files $ echo "Couchdb"> couchdb-glib-1.0.namespace $ vala-gen-introspect couchdb-glib-1.0 . $ vapigen --library Couchdb-glib-1.0 --pkg json-glib-1.0 couchdb-glib-1.0.gi The generated annotations for the header file: [CCode (cheader_filename = "couchdb-glib-1.0.h")] The changed the annotations: [CCode (cheader_filename = "couchdb-glib.h")] Test compile: valac --vapidir ../vapi --pkg Couchdb-glib-1.0 libcouchtests.vala output: [...] fatal error: couchdb-glib-1.0.h: No such file or directory compilation terminated. or [...] fatal error: couchdb-glib.h: No such file or directory compilation terminated. -- Regards, Brian Winfrey _______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
