Karl Forner
2011-May-19 12:45 UTC
[Rd] Error in svg() : cairo-based devices are not supported on this build
Hello, Sorry if it is not the right place.. I installed R-2.13.0 on a x86_64 linux server. All went fine, but the svg() function yells:> svg()Error in svg() : cairo-based devices are not supported on this build I have the Cairo, cairoDevice, RSvgDevice packages installed, and running.> Cairo.capabilities()png jpeg tiff pdf svg ps x11 win TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE I tried to google around unsuccessfully. The only thing I noticed in config.log is: r_cv_has_pangocairo=no r_cv_cairo_works=yes r_cv_has_cairo=yes #define HAVE_WORKING_CAIRO 1 #define HAVE_CAIRO_PDF 1 #define HAVE_CAIRO_PS 1 #define HAVE_CAIRO_SVG 1 So what can be wrong ?? Thank you Karl [[alternative HTML version deleted]]
Simon Urbanek
2011-May-19 14:00 UTC
[Rd] Error in svg() : cairo-based devices are not supported on this build
On May 19, 2011, at 8:45 AM, Karl Forner wrote:> Hello, > > Sorry if it is not the right place.. > > > I installed R-2.13.0 on a x86_64 linux server. > All went fine, but the svg() function yells: >> svg() > Error in svg() : cairo-based devices are not supported on this build > > I have the Cairo, cairoDevice, RSvgDevice packages installed, and running. >Those are irrelevant for svg() which is provided by built-in cairo support in R, not the packages, so you want to check capabilities():> capabilities("cairo")cairo TRUE But if you have working Cairo package can simply use CairoSVG() instead of svg(). Cheers, Simon>> Cairo.capabilities() > png jpeg tiff pdf svg ps x11 win > TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE > > I tried to google around unsuccessfully. The only thing I noticed in > config.log is: > r_cv_has_pangocairo=no > r_cv_cairo_works=yes > r_cv_has_cairo=yes > #define HAVE_WORKING_CAIRO 1 > #define HAVE_CAIRO_PDF 1 > #define HAVE_CAIRO_PS 1 > #define HAVE_CAIRO_SVG 1 > > > So what can be wrong ?? > > Thank you > > Karl > > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >
Karl Forner
2011-Jun-06 16:34 UTC
[Rd] Fwd: Error in svg() : cairo-based devices are not supported on this build
Check what configure is saying when you build R and config.log. You may be> simply missing something like pango-dev - Cairo doesn't use pango while R > does - but it is usually optional (it works on my Mac without pango) so > there may be more to it - config.log will tell you. >I managed to compile it successfully with pango-cairo support by editing the configure script and adding the pangoxft module to the pkg-config list: %diff -c configure.bak configure *** configure.bak 2011-05-31 16:16:55.000000000 +0200 --- configure 2011-05-31 16:17:21.000000000 +0200 *************** *** 31313,31319 **** $as_echo "$r_cv_has_pangocairo" >&6; } if test "x${r_cv_has_pangocairo}" = "xyes"; then modlist="pangocairo" ! for module in cairo-xlib cairo-png; do if "${PKGCONF}" --exists ${module}; then modlist="${modlist} ${module}" fi --- 31313,31319 ---- $as_echo "$r_cv_has_pangocairo" >&6; } if test "x${r_cv_has_pangocairo}" = "xyes"; then modlist="pangocairo" ! for module in cairo-xlib cairo-png pangoxft; do if "${PKGCONF}" --exists ${module}; then modlist="${modlist} ${module}" fi I do not know if it is an error in the configure script or just a peculiarity of my installation. All these libs (pango, cairo, gtk, glib) have been installed manually from tarballs. Best, Karl [[alternative HTML version deleted]]