[cairo] compiling cairo 1.12.x in mingw

ginzzer ginzzer at gmail.com
Sun Jan 6 01:44:46 PST 2013

Hi all,
  I am developing some code based on cairo, fontforge and poppler. I
downloaded all the pre-compiled libraries from http://www.gtk.org/download/win32.php,
which provides cairo 1.10.2, but when I compile fontforge with cairo
1.10.2, it reports error that missing cairo-xlib.h. It seems that 1.10.2
doesn't really support xlib so I download the latest source 1.12.8, but
when I compile it from source in mingw, it errors out

13: note: previous declaration of 'INT32' was here
In file included from cairo-xlib-xrender-private.h:531:0,
                 from cairo-xlib-private.h:41,
                 from cairo-xlib-display.c:40:
:16: error: conflicting types for 'BOOL'
In file included from d:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../..
                 from cairo-mutex-impl-private.h:189,
                 from cairo-mutex-type-private.h:45,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:396,
                 from cairo-xlib-display.c:36:
17: note: previous declaration of 'BOOL' was here
make[3]: *** [cairo-xlib-display.lo] Error 1
make[3]: Leaving directory `/home/dj/works/cairo-1.12.8/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/dj/works/cairo-1.12.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dj/works/cairo-1.12.8'
make: *** [all] Error 2

Any one has any idea how to fix it? Thanks.

More information about the cairo mailing list