Re: building evince source version 3.18.2 error



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 tecnocode 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.2 on
> CentOS 6. Could anyone kindly help, what I am missing here and how to
> fix 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: Gdk-3.0.gir
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]