[GRASS-dev] Re: [GRASS GIS] #419: cairo compilation error
#419: cairo compilation error --+- Reporter: neteler | Owner: martinl Type: defect | Status: assigned Priority: major| Milestone: 7.0.0 Component: default | Version: svn-trunk Resolution: |Keywords: Platform: Linux| Cpu: x86-32 --+- Changes (by martinl): * status: new = assigned * owner: grass-dev@lists.osgeo.org = martinl * cc: grass-dev@lists.osgeo.org (added) Comment: Replying to [comment:4 glynn]: That should be conditionalised upon CAIRO_HAS_XLIB_XRENDER_SURFACE. The function should be defined in cairo-xlib-xrender.h. Done in r36922. -- Ticket URL: https://trac.osgeo.org/grass/ticket/419#comment:9 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] Re: [GRASS GIS] #419: cairo compilation error
#419: cairo compilation error --+- Reporter: neteler | Owner: grass-dev@lists.osgeo.org Type: defect | Status: new Priority: major| Milestone: 7.0.0 Component: default | Version: svn-trunk Resolution: |Keywords: Platform: Linux| Cpu: x86-32 --+- Comment (by glynn): Replying to [comment:7 mlennert]: And do I understand correctly that g.cairocomp is need to use the GUI, at least when using the default cairo driver ? No. At present, g.cairocomp isn't used. Using the cairo driver to generate X pixmaps which can be composited by g.cairocomp offers a faster alternative to using PNM files, but it requires X, the XRender extension, and a recent version of cairo built with X and XRender support. Even if/when the GUI does use g.cairocomp, the use of PNM files will still need to be retained as a fallback. -- Ticket URL: http://trac.osgeo.org/grass/ticket/419#comment:8 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] Re: [GRASS GIS] #419: cairo compilation error
#419: cairo compilation error --+- Reporter: neteler | Owner: grass-dev@lists.osgeo.org Type: defect | Status: new Priority: major| Milestone: 7.0.0 Component: default | Version: svn-trunk Resolution: |Keywords: Platform: Linux| Cpu: x86-32 --+- Comment (by mlennert): Replying to [comment:4 glynn]: Replying to [comment:3 mlennert]: What's the minimum version of cairo needed here? Looks like 1.5.8 would be enough: I'll update the test accordingly. I have the same problem with cairo_xlib_surface_get_xrender_format That should be conditionalised upon CAIRO_HAS_XLIB_XRENDER_SURFACE. The function should be defined in cairo-xlib-xrender.h. Can you provide more details? svn update and recompile now gives only one error: {{{ mlenn...@geog-pc40:~/SRC/GRASS/grass_trunk/general/g.cairocomp$ export LANG=C; make gcc -L/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-gnu/lib -Wl, --export-dynamic -Wl,-rpath- link,/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-gnu/lib -o /home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux- gnu/bin/g.cairocomp OBJ.i486-pc-linux-gnu/main.o -lgrass_gis -lgrass_datetime -lz -lXrender -lcairo -lX11 -lm -lz OBJ.i486-pc-linux-gnu/main.o: In function `init_xlib': /home/mlennert/SRC/GRASS/grass_trunk/general/g.cairocomp/main.c:118: undefined reference to `cairo_xlib_surface_get_xrender_format' collect2: ld returned 1 exit status make: *** [/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux- gnu/bin/g.cairocomp] Error 1 }}} Using cairo 1.4.14 on Debian stable. Moritz -- Ticket URL: http://trac.osgeo.org/grass/ticket/419#comment:5 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] Re: [GRASS GIS] #419: cairo compilation error
#419: cairo compilation error --+- Reporter: neteler | Owner: grass-dev@lists.osgeo.org Type: defect | Status: new Priority: major| Milestone: 7.0.0 Component: default | Version: svn-trunk Resolution: |Keywords: Platform: Linux| Cpu: x86-32 --+- Comment (by glynn): Replying to [comment:5 mlennert]: svn update and recompile now gives only one error: {{{ /home/mlennert/SRC/GRASS/grass_trunk/general/g.cairocomp/main.c:118: undefined reference to `cairo_xlib_surface_get_xrender_format' make: *** [/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux- gnu/bin/g.cairocomp] Error 1 }}} Using cairo 1.4.14 on Debian stable. Right; I can only fix this in the sense of adding a configure check for cairo_xlib_surface_get_xrender_format() and not building g.cairocomp if it's missing. g.cairocomp can't work without that function, but the cairo driver can. -- Ticket URL: http://trac.osgeo.org/grass/ticket/419#comment:6 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] Re: [GRASS GIS] #419: cairo compilation error
#419: cairo compilation error --+- Reporter: neteler | Owner: grass-dev@lists.osgeo.org Type: defect | Status: new Priority: major| Milestone: 7.0.0 Component: default | Version: svn-trunk Resolution: |Keywords: Platform: Linux| Cpu: x86-32 --+- Comment (by mlennert): Replying to [comment:6 glynn]: Replying to [comment:5 mlennert]: svn update and recompile now gives only one error: {{{ /home/mlennert/SRC/GRASS/grass_trunk/general/g.cairocomp/main.c:118: undefined reference to `cairo_xlib_surface_get_xrender_format' make: *** [/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux- gnu/bin/g.cairocomp] Error 1 }}} Using cairo 1.4.14 on Debian stable. Right; I can only fix this in the sense of adding a configure check for cairo_xlib_surface_get_xrender_format() and not building g.cairocomp if it's missing. g.cairocomp can't work without that function, but the cairo driver can. And do I understand correctly that g.cairocomp is need to use the GUI, at least when using the default cairo driver ? I guess it's time to compile a more recent version of cairo, then... Moritz -- Ticket URL: http://trac.osgeo.org/grass/ticket/419#comment:7 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] Re: [GRASS GIS] #419: cairo compilation error
#419: cairo compilation error --+- Reporter: neteler | Owner: grass-dev@lists.osgeo.org Type: defect | Status: new Priority: major| Milestone: 7.0.0 Component: default | Version: svn-trunk Resolution: |Keywords: Platform: Linux| Cpu: x86-32 --+- Comment (by mlennert): Replying to [comment:1 glynn]: Replying to [ticket:419 neteler]: Trying to compile GRASS trunk on grass.osgeo.org (FC4 with cairo 1.4.4), I get Draw_bitmap.c:36: error: implicit declaration of function 'cairo_format_stride_for_width' What's the minimum version of cairo needed here? That function needs 1.6. Looks like 1.5.8 would be enough: http://cairographics.org/news/cairo-1.5.8/ I have the same problem with cairo_xlib_surface_get_xrender_format Moritz Please update REQUIREMENTS.html: I'd rather work around the requirement. -- Ticket URL: http://trac.osgeo.org/grass/ticket/419#comment:3 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] Re: [GRASS GIS] #419: cairo compilation error
#419: cairo compilation error --+- Reporter: neteler | Owner: grass-dev@lists.osgeo.org Type: defect | Status: new Priority: major| Milestone: 7.0.0 Component: default | Version: svn-trunk Resolution: |Keywords: Platform: Linux| Cpu: x86-32 --+- Comment (by glynn): Replying to [comment:3 mlennert]: What's the minimum version of cairo needed here? Looks like 1.5.8 would be enough: I'll update the test accordingly. I have the same problem with cairo_xlib_surface_get_xrender_format That should be conditionalised upon CAIRO_HAS_XLIB_XRENDER_SURFACE. The function should be defined in cairo-xlib-xrender.h. Can you provide more details? -- Ticket URL: http://trac.osgeo.org/grass/ticket/419#comment:4 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] Re: [GRASS GIS] #419: cairo compilation error
#419: cairo compilation error --+- Reporter: neteler | Owner: grass-dev@lists.osgeo.org Type: defect | Status: new Priority: major| Milestone: 7.0.0 Component: default | Version: svn-trunk Resolution: |Keywords: Platform: Linux| Cpu: x86-32 --+- Comment (by glynn): Replying to [ticket:419 neteler]: Trying to compile GRASS trunk on grass.osgeo.org (FC4 with cairo 1.4.4), I get Draw_bitmap.c:36: error: implicit declaration of function 'cairo_format_stride_for_width' What's the minimum version of cairo needed here? That function needs 1.6. Please update REQUIREMENTS.html: I'd rather work around the requirement. -- Ticket URL: http://trac.osgeo.org/grass/ticket/419#comment:1 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] Re: [GRASS GIS] #419: cairo compilation error
#419: cairo compilation error --+- Reporter: neteler | Owner: grass-dev@lists.osgeo.org Type: defect | Status: new Priority: major| Milestone: 7.0.0 Component: default | Version: svn-trunk Resolution: |Keywords: Platform: Linux| Cpu: x86-32 --+- Comment (by neteler): Replying to [comment:1 glynn]: Replying to [ticket:419 neteler]: Draw_bitmap.c:36: error: implicit declaration of function 'cairo_format_stride_for_width' ... I'd rather work around the requirement. That would be appreciated since I don't get Cairo 1.6 compiled on the oldish FC4 (and no way to update that). -- Ticket URL: http://trac.osgeo.org/grass/ticket/419#comment:2 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev