Markus Neteler wrote:
> [nete...@localhost ~]$ grep cairo_format_stride_for_width
> grass64/lib/cairodriver/*
> [nete...@localhost ~]$ grep cairo_format_stride_for_width
> grass65/lib/cairodriver/*
> [nete...@localhost ~]$ grep cairo_format_stride_for_width
> grass70/lib/cairodriver/*
> grass70/lib/cairodriver/Draw_bitmap.c: stride =
> cairo_format_stride_for_width(CAIRO_FORMAT_A8, ncols);
>
> So, only in 7.
Ah; you might try backporting r34923, r35242 and r35255.
> >> ERROR: write_image: unknown file type: .pdf
> >
> > 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
--
Glynn Clements <[email protected]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev