Skip Menu |

This queue is for tickets about the Cairo CPAN distribution.

Report information
The Basics
Id: 48542
Status: resolved
Priority: 0/
Queue: Cairo

People
Owner: Nobody in particular
Requestors: axel [...] go2ghana.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.061
Fixed in: (no value)



Subject: Cairo::SvgSurface
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. using perl, v5.8.8 built for i586-linux-thread-multi on opensuse 10.3 Cordially, Axel
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.