[cairo] svg libs and headers

John Taber jtaber at johntaber.net
Sat Oct 15 21:12:32 PDT 2005


Fixed, dumb mistake - makefile needed header path and link to -lsvg-cairo

John Taber wrote:
> okay, thks for the info and I've installed those libs - but I'm still
> having undefined references to the svg_cairo functions.  I looked for 
> function references in the docs but can't find the svg_cairo functions - 
> are they there somewhere ?
> 
> #include <cairo.h>
> #include <svg.h>
> #include <svg-cairo.h>
> 
> // in draw function
> 
> svg_cairo_t  *svgc;  //okay
> svg_cairo_create (&svgc);  //undefined ref
> svg_cairo_parse (svgc, "test.svg");  //undefined ref
> //svg_cairo_get_size (svgc, (uint)50, (uint)50); // not working
> cairo_scale (fltk::cc, 1.0, 1.0);
> svg_cairo_render (svgc, fltk::cc);  //undefined ref
> svg_cairo_destroy (svgc);  //undefined ref
> 
> 
> richard at theworths.org wrote:
> 
>> John,
>>
>> Looking in
>>
>>  http://cairographics.org/packages/debian/unstable/
>>
>> you should find two packages that svg_cairo depends on:
>>
>>  libsvg
>>  libsvg-cairo
>>
>> The -dev versions of each should have the source and header files 
>> you're looking
>> for.
>>
>> - Richard D. Worth
>>
>> Quoting John Taber <jtaber at johntaber.net>:
>>
>>> I'm trying to display a svg file using svg_cairo...
>>> I'm missing the header file for svg (and cannot seem to locate the 
>>> proper libs on Debian unstable ie libsvg-cairo).  Can anyone help.  
>>> thks.
>>> _______________________________________________
>>> cairo mailing list
>>> cairo at cairographics.org
>>> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
>>>
>>
>>
>>
>>
>>
> 
> 


More information about the cairo mailing list