# Rcairo 1.8 and rsvg 0.18.1

**URL:** <https://www.ruby-forum.com/t/rcairo-1-8-and-rsvg-0-18-1/152687>\
**Category:** Ruby-Gnome 2\
**Created:** [November 6, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/rcairo-1-8-and-rsvg-0-18-1/152687 "2008-11-06T13:36:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjames](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sjames](https://www.ruby-forum.com/u/sjames)\
**Post date:** [November 6, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/rcairo-1-8-and-rsvg-0-18-1/152687/1 "2008-11-06T13:36:10Z")

</div>

I recently upgraded my cairo bindings to 1.8, and my ruby-gnome2  
bindings to  
0.18.1.

Everything seems to be working nicely (less leaks!), with one exception:  
after loading the rsvg2 bindings, my cairo contexts don’t have the  
render\_rsvg\_handle method added to them.

I’ve traced this issue to the check\_cairo refactor in revison 3294.

The temporary solution I used as a workaround was to add the following  
line to rsvg/extconf.rb

have\_header(“librsvg/rsvg-cairo.h”)

It appears that line doesn’t get called in the new check\_cairo function,  
so the Makefile generated for the rsvg bindings doesn’t add  
-DHAVE\_LIBRSVG\_RSVG\_CAIRO\_H to CPP\_FLAGS.

– James H. Thu, 06 Nov 2008 22:58:16 +1100

---

<div class="post-metadata">

**Author:** ![sjames](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sjames](https://www.ruby-forum.com/u/sjames)\
**Post date:** [November 6, 2008, 1:53pm UTC](https://www.ruby-forum.com/t/rcairo-1-8-and-rsvg-0-18-1/152687/2 "2008-11-06T13:53:13Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] rcairo 1.8 and rsvg 0.18.1” on Thu, 6 Nov 2008  
23:18:35 +1100,  
James H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> The temporary solution I used as a workaround was to add the following  
> line to rsvg/extconf.rb
> 
> have\_header(“librsvg/rsvg-cairo.h”)

You’re right. The check is missing. I’ve fixed it in trunk.  
Thanks for reporting!

–  
kou
