On Sat Aug 08 04:25:57 2009, go2ghana wrote:
Show quoted text> Hi, trying to use Cairo::SvgSurface->create
> like suggested in the docs:
>
> my $surface = Cairo::SvgSurface->create ('juice.svg', 800, 640);
>
> results in the following error:
>
> Can't locate object method "create" via package "Cairo::SvgSurface"
> (perhaps you forgot to load "
> Cairo::SvgSurface"?) at cairo.pl line 6.
This strongly suggests that the Cairo Perl module was compiled against a
libcairo that wasn't compiled with SVG support. You can check for this
by calling Cairo::HAS_SVG_SURFACE() in your code. To verify that your
libcairo installation has no SVG support, run the command "pkg-config
--modversion cairo-svg". If this returns a version number rather than
an error and Cairo::HAS_SVG_SURFACE() still returns zero, then the Cairo
Perl module needs to be recompiled against the currently installed libcairo.