Git master fails to build on Ubuntu 18.10

Bug #1802010 reported by Alexandre Prokoudine
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

Ubuntu 18.10, git master, commit d4de1f2157af7bf0dda44c8d95100468fa280125

[ 19%] Building CXX object src/CMakeFiles/inkscape_base.dir/extension/internal/cairo-renderer.cpp.o
/PATH/inkscape-2018-11-04/src/extension/internal/cairo-renderer.cpp: In function 'void Inkscape::Extension::Internal::sp_text_render(SPText*, Inkscape::Extension::Internal::CairoRenderContext*)':
/PATH/inkscape-2018-11-04/src/extension/internal/cairo-renderer.cpp:339:18: error: 'class Inkscape::Text::Layout' has no member named 'showGlyphs'; did you mean '_glyphs'?
     text->layout.showGlyphs(ctx);
                  ^~~~~~~~~~
                  _glyphs
/PATH/inkscape-2018-11-04/src/extension/internal/cairo-renderer.cpp: In function 'void Inkscape::Extension::Internal::sp_flowtext_render(SPFlowtext*, Inkscape::Extension::Internal::CairoRenderContext*)':
/PATH/inkscape-2018-11-04/src/extension/internal/cairo-renderer.cpp:344:22: error: 'class Inkscape::Text::Layout' has no member named 'showGlyphs'; did you mean '_glyphs'?
     flowtext->layout.showGlyphs(ctx);
                      ^~~~~~~~~~
                      _glyphs
make[2]: *** [src/CMakeFiles/inkscape_base.dir/build.make:1292: src/CMakeFiles/inkscape_base.dir/extension/internal/cairo-renderer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:364: src/CMakeFiles/inkscape_base.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

What other info should I provide you?

Revision history for this message
Patrick Storz (ede123) wrote :

This error seems to indicate HAVE_CAIRO_PDF is not defined in your build, see [1].

This indicates two problems:
- For once the optional code does not seem to be properly protected by
  pre-processor directives anymore as the whole idea is to allow Inkscape
  to compile even if HAVE_CAIRO_PDF is undefined
- More generally and unrelated to Inkscape itself it seems your cairo
  was built without CAIRO_HAS_PDF_SURFACE. While not an actual error
  it seems unlikely it should be packaged like that in Ubuntu 18.10, so
  unless you built cairo yourself you should report the error to
  Ubuntu packagers.

[1] https://gitlab.com/inkscape/inkscape/blob/33780c0f28bcda586b1e14de93525a6ab426e4df/src/libnrtype/Layout-TNG.h#L405-410

Revision history for this message
Qantas94Heavy (qantas94heavy) wrote :

A fix to allow compilation without cairo-pdf.h has been merged into master: https://gitlab.com/inkscape/inkscape/merge_requests/494

Changed in inkscape:
status: New → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.