Ah, this explains things. Yes, the Gdk-3.0.gir you have is actually the HTML page from here: https://github.com/roojs/gir-1.2-gtk-3.0/blob/master/Gdk-3.0.gir What you want is the raw GIR file, from here: https://raw.githubusercontent.com/roojs/gir-1.2-gtk-3.0/master/Gdk-3.0. gir **However**, this is not the correct approach. If Gdk-3.0.gir is missing, you need to install the version corresponding to the version of libgtk3 (note, GTK+ includes GDK) which is installed on your system. This would probably be provided by a gtk3-devel package. Philip On Tue, 2016-01-26 at 22:25 +1100, jupiter wrote:
Hi Philip, As I recall, I failed to compiled the evince source, it complained that the gobject-introspection version 1.46.0 missed out Gdk-3.0.gir in share/gir-1.0, so I downloaded from Internet https://github.com/ro ojs/gir-1.2-gtk-3.0/blob/master/Gdk-3.0.gir, looks like it is wrong file. Where can I get a correct Gdk-3.0.gir? Thank you. Kind regards, - j On Tue, Jan 26, 2016 at 4:37 PM, jupiter <jupiter hce gmail com> wrote:Hi Phlip, I did a debug and added two statements print "filename1: %s" %(filename) in line 56 and line 58 of girparser.py, it printed out following statements before it broken at line 60: CCLD libevdocument3.la GISCAN EvinceDocument-3.0.gir filename1: /usr/local/gobject/share/gir-1.0/GLib-2.0.gir filename2: /usr/local/gobject/share/gir-1.0/GLib-2.0.gir filename1: /usr/local/gobject/share/gir-1.0/Gio-2.0.gir filename2: /usr/local/gobject/share/gir-1.0/Gio-2.0.gir filename1: /usr/local/gobject/share/gir-1.0/GObject-2.0.gir filename2: /usr/local/gobject/share/gir-1.0/GObject-2.0.gir filename1: /usr/local/gobject/share/gir-1.0/Gdk-3.0.gir filename2: /usr/local/gobject/share/gir-1.0/Gdk-3.0.gir Caught exception: <class 'cElementTree.ParseError'> ParseError('not well-formed (invalid token): line 34, column 70',)<string>(38)parse()(Pdb) where /usr/local/gobject/bin/g-ir-scanner(58)<module>() -> sys.exit(scanner_main(sys.argv)) /usr/local/gobject/lib/gobject- introspection/giscanner/scannermain.py(512)scanner_main() -> transformer = create_transformer(namespace, options) /usr/local/gobject/lib/gobject- introspection/giscanner/scannermain.py(389)create_transformer() -> transformer.register_include(include_obj) /usr/local/gobject/lib/gobject- introspection/giscanner/transformer.py(136)register_include() -> self._parse_include(filename) /usr/local/gobject/lib/gobject- introspection/giscanner/transformer.py(218)_parse_include() -> parser.parse(filename) /usr/local/gobject/lib/gobject- introspection/giscanner/girparser.py(60)parse() -> tree = parse(filename) <string>(62)parse()<string>(38)parse()It seems to me the exception was complaint on Gdk-3.0.gir which is provided by gobject source, correct? Anyway, I also attached the copy of the Gdk-3.0.gir for your reference. There is no EvinceDocument-3.0.gir in /usr/local/gobject/share/gir-1.0 directory. The compile complaint the line 34, column 70 <meta name="selected-link" value="repo_source" data-pjax-transient> I tried to add data-pjax-transient="true", it then got exception at line 73: Caught exception: <class 'cElementTree.ParseError'> ParseError('mismatched tag: line 73, column 4',) I am not familiar with the gobject, please advice. Thank you. Kind regards, - j On Tue, Jan 26, 2016 at 3:51 PM, jupiter <jupiter hce gmail com> wrote:Thanks Philip for your response, the gobject-introspection version is 1.46.0 I built the source in CentOS 6. The build process stopped at following statement, I could not find EvinceDocument-3.0.gir (it could be deleted after failing of the build process?) Making all in libdocument GISCAN EvinceDocument-3.0.gir Caught exception: <class 'cElementTree.ParseError'> ParseError('not well-formed (invalid token): line 34, column 70',)<string>(38)parse()Thank you. Kind regards, - j On Mon, Jan 25, 2016 at 6:27 PM, Philip Withnall <philip tecnocod e.co.uk> wrote:On Mon, 2016-01-25 at 14:19 +1100, jupiter wrote:Hi, I've got an error while I was building evince version 3.18.2onCentOS 6. Could anyone kindly help, what I am missing hereand how tofix it or workacounts?What version of gobject-introspection? What’s the contents of EvinceDocument-3.0.gir? Philip _______________________________________________ gir-devel-list mailing list gir-devel-list gnome org https://mail.gnome.org/mailman/listinfo/gir-devel-list
Attachment:
signature.asc
Description: This is a digitally signed message part