Markus Neteler wrote: > I am trying to render PDFs from screen output (6.5, for 7 see below) and ran > into this error: > > # minimalistic example > d.erase > echo "Ciao" | d.text at=15,92 -b size=4 font=Vera > > d.out.file output format=pdf > Using the Cairo driver. > Saving display from Monitor: [x0] to <output.pdf>. > Image size [1276 x 966] > ERROR: Cairo_draw_bitmap: Failed to create source
Can you run "nm -D" on libgrass_cairodriver.so and report whether the symbol cairo_format_stride_for_width appears in the output? That function requires cairo 1.5.8 or later. On earlier versions, the stride is forced to be a multiple of 4; it may be that it needs to be a multiple of 8 on a 64-bit platform. > GRASS 7 - no success at all: > > export GRASS_RENDER_IMMEDIATE=CAIRO > export GRASS_PNGFILE=map.pdf > d.rast map=elevation.10m > 100% > ERROR: write_image: unknown file type: .pdf That error message is from the PNG driver, which implies that GRASS was built without cairo support. -- Glynn Clements <[email protected]> _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
