[GRASS-dev] ERROR: Cairo_draw_bitmap: Failed to create source

Markus Neteler neteler at osgeo.org
Mon Aug 17 04:48:24 EDT 2009


On Mon, Aug 17, 2009 at 8:17 AM, Glynn Clements<glynn at gclements.plus.com> wrote:
> Markus Neteler wrote:
>> cairo_format_stride_for_width(CAIRO_FORMAT_A8, ncols);
>>
>> So, only in 7.
>
> Ah; you might try backporting r34923, r35242 and r35255.

This looks like too complicated for me.

>> > That error message is from the PNG driver, which implies that GRASS
>> > was built without cairo support.
>>
>> Actually, I compiled with cairo support:
>> grep cairo grass70/conf_grass70_64bit_pentium.sh
>>   --with-cairo \
>
> AFAICT, the problem is due to the merge of lib/raster into
> lib/display. lib/display/Makefile needs the following patch to enable
> cairo:
>
> --- lib/display/Makefile        (revision 38759)
> +++ lib/display/Makefile        (working copy)
> @@ -4,6 +4,8 @@
>        $(HTMLDRIVERLIB) $(RASTERLIB)
>  EXTRA_INC = -I../driver
>
> +include $(MODULE_TOPDIR)/include/Make/Vars.make
> +
>  ifneq ($(USE_CAIRO),)
>  EXTRA_LIBS +=  $(CAIRODRIVERLIB)
>  EXTRA_CFLAGS += -DUSE_CAIRO

That helps - submitted.

Markus


More information about the grass-dev mailing list