Comment 25 for bug 1269206

Revision history for this message
su_v (suv-lp) wrote :

@David - JFYI: build failure with trunk r13126 + 'changes_2014_02_21b_textdecorateonly.patch' when using CPPFLAGS="-DWITH_SVG2" [1]:

   CXX display/drawing-shape.o
../../src/display/drawing-shape.cpp:159:43: error: no viable conversion from 'Inkscape::DrawingContext' to 'cairo_t *' (aka '_cairo *')
    bool has_fill = _nrstyle.prepareFill(dc, _item_bbox);
                                          ^~
../../src/display/nr-style.h:31:31: note: passing argument to parameter 'ct' here
    bool prepareFill(cairo_t *ct, Geom::OptRect const &paintbox);
                              ^
../../src/display/drawing-shape.cpp:163:28: error: no viable conversion from 'Inkscape::DrawingContext' to 'cairo_t *' (aka '_cairo *')
        _nrstyle.applyFill(dc);
                           ^~
../../src/display/nr-style.h:35:29: note: passing argument to parameter 'ct' here
    void applyFill(cairo_t *ct);
                            ^
../../src/display/drawing-shape.cpp:175:46: error: no viable conversion from 'Inkscape::DrawingContext' to 'cairo_t *' (aka '_cairo *')
    bool has_stroke = _nrstyle.prepareStroke(dc, _item_bbox);
                                             ^~
../../src/display/nr-style.h:32:33: note: passing argument to parameter 'ct' here
    bool prepareStroke(cairo_t *ct, Geom::OptRect const &paintbox);
                                ^
../../src/display/drawing-shape.cpp:181:30: error: no viable conversion from 'Inkscape::DrawingContext' to 'cairo_t *' (aka '_cairo *')
        _nrstyle.applyStroke(dc);
                             ^~
../../src/display/nr-style.h:36:31: note: passing argument to parameter 'ct' here
    void applyStroke(cairo_t *ct);
                              ^
1 warning and 4 errors generated.
make[3]: *** [display/drawing-shape.o] Error 1
  CXX display/drawing-text.o
../../src/display/drawing-text.cpp:536:36: error: no viable conversion from 'Inkscape::DrawingContext' to 'cairo_t *' (aka '_cairo *')
                _nrstyle.applyFill(dc);
                                   ^~
../../src/display/nr-style.h:35:29: note: passing argument to parameter 'ct' here
    void applyFill(cairo_t *ct);
                            ^
1 warning and 1 error generated.
make[3]: *** [display/drawing-text.o] Error 1
make[3]: Target `all-am' not remade because of errors.
make[2]: *** [all] Error 2

[1] to test the latest paint-order feature implemented by Tav, and described here: <http://tavmjong.free.fr/blog/?p=1090>