[Clipart] Re: XML::LibRSVG

Jonadab the Unsightly One jonadab at bright.net
Wed Jul 21 08:25:52 PDT 2004


Bryce Harrington <bryce at bryceharrington.com> writes:

> On the topic of Perl modules for renderers, I did a quick search and ran
> across this XML::LibRSVG:
>
>     http://aspn.activestate.com/ASPN/CodeDoc/XML-LibRSVG/LibRSVG.html
>
> It's only version 0.01 but perhaps worth a look-see?

I like the interface presented in the POD.  Looks very convenient.

Unfortunately, I can't get it to install...

 +---------------------------------------------------------------------------
 |   CPAN.pm: Going to build M/MS/MSERGEANT/XML-LibRSVG-0.01.tar.gz
 |  
 | Checking if your kit is complete...
 | Looks good
 | Unrecognized argument in LIBS ignored: '-rdynamic'
 | Writing Makefile for XML::LibRSVG
 | cp LibRSVG.pm blib/lib/XML/LibRSVG.pm
 | /usr/bin/perl5.8.1 /usr/lib/perl5/5.8.1/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.1/ExtUtils/typemap -typemap typemap  LibRSVG.xs > LibRSVG.xsc && mv LibRSVG.xsc LibRSVG.c
 | gcc -c  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  -I/usr/include/freetype2  -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE"   LibRSVG.cLibRSVG.xs:13:35: gdk-pixbuf/gdk-pixbuf.h: No such file or directory
 | LibRSVG.xs:14:26: librsvg/rsvg.h: No such file or directory
 | LibRSVG.xs:34: error: syntax error before "save_pixbuf_to_file_internal"
 | LibRSVG.xs:34: error: syntax error before '*' token
 | LibRSVG.xs: In function `save_pixbuf_to_file_internal':
 | LibRSVG.xs:37: error: `gboolean' undeclared (first use in this function)
 | LibRSVG.xs:37: error: (Each undeclared identifier is reported only once
 | LibRSVG.xs:37: error: for each function it appears in.)
 | LibRSVG.xs:37: error: syntax error before "has_alpha"
 | LibRSVG.xs:39: error: `guchar' undeclared (first use in this function)
 | LibRSVG.xs:39: error: `pixels' undeclared (first use in this function)
 | LibRSVG.xs:61: error: `handle' undeclared (first use in this function)
 | LibRSVG.xs:63: error: `has_alpha' undeclared (first use in this function)
 | LibRSVG.xs:63: error: `pixbuf' undeclared (first use in this function)
 | LibRSVG.xs:78: error: `filename' undeclared (first use in this function)
 | LibRSVG.xs:92: warning: assignment makes pointer from integer without a cast
 | LibRSVG.xs: At top level:
 | LibRSVG.xs:136: error: syntax error before "save_pixbuf_to_sv_internal"
 | LibRSVG.xs:136: error: syntax error before '*' token
 | LibRSVG.xs: In function `save_pixbuf_to_sv_internal':
 | LibRSVG.xs:139: error: `gboolean' undeclared (first use in this function)
 | LibRSVG.xs:139: error: syntax error before "has_alpha"
 | LibRSVG.xs:141: error: `guchar' undeclared (first use in this function)
 | LibRSVG.xs:141: error: `pixels' undeclared (first use in this function)
 | LibRSVG.xs:163: error: `sv' undeclared (first use in this function)
 | LibRSVG.xs:165: error: `has_alpha' undeclared (first use in this function)
 | LibRSVG.xs:165: error: `pixbuf' undeclared (first use in this function)
 | LibRSVG.xs:194: warning: assignment makes pointer from integer without a cast
 | LibRSVG.xs: At top level:
 | LibRSVG.xs:227: error: syntax error before "save_pixbuf_to_file"
 | LibRSVG.xs:227: error: syntax error before '*' token
 | LibRSVG.xs: In function `save_pixbuf_to_file':
 | LibRSVG.xs:230: error: `gboolean' undeclared (first use in this function)
 | LibRSVG.xs:230: error: syntax error before "result"
 | LibRSVG.xs:232: error: `pixbuf' undeclared (first use in this function)
 | LibRSVG.xs:233: error: `filename' undeclared (first use in this function)
 | LibRSVG.xs:246: error: `result' undeclared (first use in this function)
 | LibRSVG.xs: In function `XS_XML__LibRSVG_write_png_from_file_at_zoom':
 | LibRSVG.xs:266: error: `GdkPixbuf' undeclared (first use in this function)
 | LibRSVG.xs:266: error: `pixbuf' undeclared (first use in this function)
 | LibRSVG.xs: In function `XS_XML__LibRSVG_png_from_file_at_zoom':
 | LibRSVG.xs:293: error: `GdkPixbuf' undeclared (first use in this function)
 | LibRSVG.xs:293: error: `pixbuf' undeclared (first use in this function)
 | make: *** [LibRSVG.o] Error 1
 |   /usr/bin/make  -- NOT OK
 | Running make test
 |   Can't test without successful make
 | Running make install
 |   make had returned bad status, install seems impossible
 |  
 | cpan>
 +---------------------------------------------------------------------------

Also, I'm seeing XS stuff there, which will probably make it hard to
install on pdx without root privs, even if the problems above are
hammered out.

-- 
$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}}
split//,"ten.thgirb\@badanoj$/ --";$\=$ ;-> ();print$/




More information about the clipart mailing list