[Vala] Errors trying to re-generate poppler-glib.vapi



Hello,
I am trying to re-generate poppler-glib.vapi from Poppler-0.18.gir with the following command-line:

  $ vapigen --vapidir /usr/share/vala-0.34/vapi/ \
    --pkg cairo --pkg gio-2.0 --library poppler-glib \
    /usr/share/gir-1.0/Poppler-0.18.gir

My system is an up-to-date Debian GNU/Linux unstable box.
I took the command-line from
https://anonscm.debian.org/cgit/pkg-vala/vala.git/tree/vapi/Makefile.in

Unfortunately, I get the following errors:

  Poppler-0.18.gir:5044.71-5044.71: error: The type name `Poppler.Backend.CAIRO.Surface' could not be found
            <type name="cairo.Surface" c:type="cairo_surface_t*"/>
                                                                        ^
  Poppler-0.18.gir:5131.67-5131.67: error: The type name `Poppler.Backend.CAIRO.Region' could not be found
            <type name="cairo.Region" c:type="cairo_region_t*"/>
                                                                    ^
  Poppler-0.18.gir:5408.71-5408.71: error: The type name `Poppler.Backend.CAIRO.Surface' could not be found
            <type name="cairo.Surface" c:type="cairo_surface_t*"/>
                                                                        ^
  Poppler-0.18.gir:5494.57-5494.57: error: The type name `Poppler.Backend.CAIRO.Context' could not be found
              <type name="cairo.Context" c:type="cairo_t*"/>
                                                          ^
  Poppler-0.18.gir:5511.57-5511.57: error: The type name `Poppler.Backend.CAIRO.Context' could not be found
              <type name="cairo.Context" c:type="cairo_t*"/>
                                                          ^
  Poppler-0.18.gir:5530.57-5530.57: error: The type name `Poppler.Backend.CAIRO.Context' could not be found
              <type name="cairo.Context" c:type="cairo_t*"/>
                                                          ^
  Poppler-0.18.gir:5558.57-5558.57: error: The type name `Poppler.Backend.CAIRO.Context' could not be found
              <type name="cairo.Context" c:type="cairo_t*"/>
                                                          ^
  Generation failed: 7 error(s), 0 warning(s)


I am really ignorant about Vala, so please bear with me...

Could someone please explain where I am going wrong?
Thanks a lot for your time and for any help you may provide!

P.S.: I am not subscribed to the mailing list: please Cc me on replies.
Thanks for your understanding!



-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Attachment: pgpVdIchexA_n.pgp
Description: PGP signature



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