Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ANN] rcairo 1.0.0

1 view
Skip to first unread message

Kouhei Sutou

unread,
Oct 15, 2005, 12:23:23 PM10/15/05
to
Hi,

I released rcairo 1.0.0.

http://cairographics.org/releases/rcairo-1.0.0.tar.gz

MD5: e6c6442b24155146ba986dc7774e45e3
SHA1: 7da5155f0f141dd8c0b8ec3010f0536bc10e6e6a

rcairo is a Ruby bindings for cairo(*).

Cairo is a 2D graphics library with support for multiple
output devices. Currently supported output targets include
the X Window System, win32, and image
buffers. Experimental backends include OpenGL (through
glitz), Quartz, XCB, PostScript and PDF file output.

--
(*) http://cairographics.org/

The following URIs are helpful to learn cairo:
http://cworth.org/~cworth/papers/cairo_ddc2005/
http://cworth.org/~cworth/papers/cairo_lca2005/


INSTALL:

% wget http://cairographics.org/releases/rcairo-1.0.0.tar.gz

## if you want to checksum
% wget http://cairographics.org/releases/rcairo-1.0.0.tar.gz.md5
% md5sum -c rcairo-1.0.0.tar.gz.md5
##

% tar xvfz rcairo-1.0.0.tar.gz
% cd rcairo-1.0.0

% ruby setup.rb config
% ruby setup.rb setup
% sudo ruby setup.rb install
## or
% sudo ruby setup.rb


SAMPLES:

% cd samples

% ruby png.rb # output test.png
% display test.png

% ruby ps.rb # output test.ps
% evince test.ps
% ruby ps2.rb # output test2.ps which is same as test.ps
% evince test2.ps

% ruby pdf.rb # output test.pdf
% evince test.pdf
% ruby pdf2.rb # output test2.pdf which is same as test.pdf
% evince test2.pdf

Other samples are included in Ruby/GTK samples:
http://cvs.sourceforge.net/viewcvs.py/ruby-gnome2/ruby-gnome2/gtk/sample/gtk-demo/

cairo-*.rb are using rcairo.


DOCUMENTATION:

Not yet... Please see the above sample scripts.

I'm using cairo's API reference:
http://cairographics.org/manual/ix01.html


DESCRIPTION:

* Implementing ALL cairo API.
* Adjusting the style for language binding for cairo(*).
* Supporting PS/PDF surface

--
(*) http://cairographics.org/manual/language-bindings.html


THANKS:

* Masao Mutoh: Fixed installation on Win32 and reported
some bugs.


Regards,
--
kou


Adam Sanderson

unread,
Oct 16, 2005, 11:57:21 AM10/16/05
to
Sounds promising, thanks for creating this library.
.adam

Kouhei Sutou

unread,
Oct 17, 2005, 1:26:31 AM10/17/05
to
Hi,

In <20051016.01231...@cozmixng.org>
"[ANN] rcairo 1.0.0" on Sun, 16 Oct 2005 01:23:23 +0900,
Kouhei Sutou <k...@cozmixng.org> wrote:

> I released rcairo 1.0.0.
>
> http://cairographics.org/releases/rcairo-1.0.0.tar.gz
>
> MD5: e6c6442b24155146ba986dc7774e45e3
> SHA1: 7da5155f0f141dd8c0b8ec3010f0536bc10e6e6a
>

> INSTALL:

For Win32 users:

Masao Mutoh who is the maintainer of Ruby-GNOME2 project
makes a binary package for rcairo. This is included in the
following archive:

http://prdownloads.sourceforge.net/ruby-gnome2/ruby-gtk2-0.14.0-1-i386-msvcrt-1.8.zip?download

The rcairo binary package applied bug fix patch.


Thanks,
--
kou


Tool69

unread,
Oct 17, 2005, 4:26:02 PM10/17/05
to
Hi,
I've installed cairo and rcairo on Ubuntu and none of the examples in
the samples directory works but png.rb.
Launching ps.rb gives me an empty file test.ps with the following error
:

ruby: symbol lookup error: ../packages/cairo/ext/cairo.so: undefined
symbol: cairo_ps_surface_create_for_stream"

If you can help thanks, I'm new to Ruby.

Kouhei Sutou

unread,
Oct 18, 2005, 12:49:16 AM10/18/05
to
Hi,

In <1129580762.1...@g14g2000cwa.googlegroups.com>
"Re: rcairo 1.0.0" on Tue, 18 Oct 2005 05:26:57 +0900,
"Tool69" <kibleur.c...@gmail.com> wrote:

> I've installed cairo and rcairo on Ubuntu

Thanks! :)

> Launching ps.rb gives me an empty file test.ps with the following error
> :
>
> ruby: symbol lookup error: ../packages/cairo/ext/cairo.so: undefined
> symbol: cairo_ps_surface_create_for_stream"

It seems that this is a cairo library search problem. It
seems that your rcairo was compiled with cairo which
supports PS/PDF but you use rcairo with cairo which does not
support PS/PDF.


Thanks,
--
kou


Tool69

unread,
Oct 18, 2005, 1:06:41 AM10/18/05
to
Thanks a lot Kou, I'll investigate that way...maybe in the different
pathes.

0 new messages