Forum: Ruby-Gnome 2 rcairo 1.8 and rsvg 0.18.1

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3c57e468b54598a8f78f4dc18f3836f6?d=identicon&s=25 James Healy (Guest)
on 2008-11-06 13:36
(Received via mailing list)
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 Healy <jimmy-at-deefa-dot-com>  Thu, 06 Nov 2008 22:58:16 +1100
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2008-11-06 13:53
(Received via mailing list)
Hi,

In <20081106121834.GN18927@deefa.com>
  "[ruby-gnome2-devel-en] rcairo 1.8 and rsvg 0.18.1" on Thu, 6 Nov 2008
23:18:35 +1100,
  James Healy <jh@yob.id.au> 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
This topic is locked and can not be replied to.