[cairo] rcairo 1.7.0 requires cairo >= 1.4.0
Yusuke ENDOH
mame at tsg.ne.jp
Tue Aug 26 10:54:06 PDT 2008
Hi,
I have trouble with rcairo 1.7.0.
I first installed rcairo with rubygems successfully:
> $ gem19 install cairo
> Building native extensions. This could take a while...
> Successfully installed cairo-1.7.0
> 1 gem installed
But Cairo::Context#new leads to abort due to symbol lookup error.
> $ ruby19 -rcairo -e '
> surface = Cairo::ImageSurface.new(Cairo::FORMAT_ARGB32, 200, 200)
> c = Cairo::Context.new(surface)
> '
> ruby19: symbol lookup error: .../local/lib/ruby/gems/1.9.0/gems/cairo-1.7.0/src/lib/cairo.so: undefined symbol: cairo_set_user_data
I'm using debian/etch and its cairo package whose the version is 1.2.4.
> $ dpkg -l | grep libcairo2-dev
> ii libcairo2-dev 1.2.4-4.1+etch1
But the API cairo_set_user_data seems to be added from cairo 1.4.0.
http://www.cairographics.org/news/cairo-1.4.0/
So, I think extconf.rb must require cairo >= 1.4.0.
Index: README
===================================================================
RCS file: /cvs/cairo/rcairo/README,v
retrieving revision 1.27
diff -r1.27 README
13c13
< cairo >= 1.2.0
---
> cairo >= 1.4.0
Index: extconf.rb
===================================================================
RCS file: /cvs/cairo/rcairo/extconf.rb,v
retrieving revision 1.23
diff -r1.23 extconf.rb
79c79
< major, minor, micro = 1, 2, 0
---
> major, minor, micro = 1, 4, 0
Thanks,
--
Yusuke ENDOH <mame at tsg.ne.jp>
More information about the cairo
mailing list