Ruby Forum Ruby-Gnome 2 > Problem with Gdk.cairo_available? when using 1.7.0-rc1 and cairo in a non standard directory?

Posted by Guillaume Cottenceau (Guest)
on 23.06.2008 10:49
(Received via mailing list)
Hi,

There is a user of my software who has a problem, Gdk.cairo_available?
not found when loading gtk2:

https://www.zarb.org/pipermail/booh-discuss/2008-June/000267.html

He said he's using 0.17.0-rc1, with pixman and cairo in non standard 
directory:

https://www.zarb.org/pipermail/booh-discuss/2008-June/000271.html

Does it say something? From reading the code, Gdk.cairo_available?
should always be ok I guess!?

--
Guillaume Cottenceau - http://zarb.org/~gc/
Posted by Kouhei Sutou (Guest)
on 23.06.2008 12:04
(Received via mailing list)
Hi,

In <dc3bf8580806230149h677acf64wd42149215f66a5f5@mail.gmail.com>
  "[ruby-gnome2-devel-en] Problem with Gdk.cairo_available? when using 
1.7.0-rc1 and cairo in a non standard directory?" on Mon, 23 Jun 2008 
10:49:01 +0200,
  "Guillaume Cottenceau" <gcottenc@gmail.com> wrote:

> He said he's using 0.17.0-rc1, with pixman and cairo in non standard directory:
> 
> https://www.zarb.org/pipermail/booh-discuss/2008-June/000271.html
> 
> Does it say something? From reading the code, Gdk.cairo_available?
> should always be ok I guess!?

Yes.
It seems that old gtk2.so is loaded.

Confirmation:
  % strace ruby bin/booh 2>&1 | grep gtk2.so


Thanks,
--
kou
Posted by Joachim Glauche (joaz)
on 24.06.2008 13:54
Kouhei Sutou wrote:

> Yes.
> It seems that old gtk2.so is loaded.
> 
> Confirmation:
>   % strace ruby bin/booh 2>&1 | grep gtk2.so

I had similar problems after updated ruby and did a make && make install 
again.

A make clean & complete new build resolved the problem.

Joachim