[cairo] Cross-built Cairo for ARM not drawing

Marc Singer elf at synapse.com
Thu Mar 13 18:11:12 PDT 2008

I've been using cairo 1.2.4 for some time because it was the only
version that was drawing for me.  Today, I tried 1.4.14 again and
1.5.12 just to see if I could determine why I've had problems in the past.

I'm cross building for ARM using GCC-3.4.4.

The 1.4.14 build tends to draw narrow vertical bands of color.

Version 1.5.12 with pixman 0.9.6 doesn't show those bands of color, but most
of the time the drawing is blank.  I've reduced the code to a simple 

  cairo_save (cr);
  cairo_set_source_rgb (cr, 0, 1, 0);
  cairo_paint (cr);
  cairo_restore (cr);

  cairo_save (cr);
  cairo_set_source_rgba (cr, 1, 0, 0, 1);
  cairo_set_line_width (cr, 10.0);
  cairo_arc (cr, 640/2, 200/2, 100, 0, M_PI);
  cairo_stroke (cr);
  cairo_restore (cr);

  draw_string (cr, "Hello Man", 640/2, 200/2, 20, 0, textCenter);

After this code runs, I save the surface to a PNG to make sure that my
BLTer isn't the culprit.  On a PC running Debian GNU/Linux and 1.4.14, this
fragment draws what I'd expect.  On the ARM target, all I see is the green
background.  So, I know that something is working but there is definitely
something amiss.

Any suggestions as to where to look for such a problem?  BTW, I am
configuring cairo without most of the backends:

      .,/configure \

Marc Singer
Bureau of Gizmology
elf at synapse.com
t. 206.832.3712
f. 206.381.0899

Synapse Product Development, LLC.
1511 6th Avenue, 4th floor
Seattle, WA 98101

More information about the cairo mailing list