Re: Example in 2.4 docs does not build - no cairomm include files
- From: Sean Kelley <sean sweng gmail com>
- To: Jonathon Jongsma <jonathon jongsma gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Example in 2.4 docs does not build - no cairomm include files
- Date: Tue, 27 Dec 2005 22:11:49 -0600
So why are these examples put under libgtkmm2.4 if they are in cvs? Just curious.
Thanks,
Sean
On 12/27/05, Jonathon Jongsma <jonathon jongsma gmail com> wrote:
The examples for the Cairo functionality are actually not available in
a released version of gtkmm yet. This functionality is only available
in cvs, so it won't work with the version of gtkmm that you have
installed.
If you're simply trying to learn gtkmm, I'd recommend that you install
the libgtkmm2.4-doc package and follow the documentation from there
(i.e. /usr/share/doc/libgtkmm-2.4-doc/index.html). Then you're
guaranteed that the docs will be synchronized with the gtkmm version
that you have installed. There's an older drawing API that is used in
existing versions of gtkmm, so you'll still be able to draw with your
version of gtkmm, you just won't be able to use the new Cairo API.
If you're really interested in trying the Cairo functionality, there
are a couple of options. The first is to build gtkmm and cairomm from
CVS (probably using jhbuild -- but note that you'll need the HEAD
branch for the Cairo functionality, not the branch currently specified
in the jhbuild modules file).
The second option is to install cairomm but keep your existing gtkmm
installation. This would require you to use the underlying GDK
function gdk_cairo_create(GdkDrawable *drawable) instead of
Gdk::Window::create_cairo_context() and then wrap the resulting
cairo_t* value using the Cairo::Context(cairo_t* cobject, bool
has_reference) constructor.
The third option is to not install anything and just use the straight
C cairo interface.
On 12/25/05, Nick <halbtaxabo-debml yahoo com> wrote:
> I'm trying to learn gtkmm by using the docs at:
>
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/index.html
>
> However, the example at:
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch14s07.html
> doesn't compile because it requires an include file,
> <cairomm/context.h>, that isn't installed. I'm using
> Debian Sarge and installed the Debian package
> libgtkmm2.4-dev and its dependencies, as recommended
> by the gtkmm team here:
> http://www.gtkmm.org/download.shtml
>
>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]