compiling cairo 1.12.x in mingw

ginzzer <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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

d:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/basetsd.h:54:
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:
d:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/X11/Xmd.h:143
:16: error: conflicting types for 'BOOL'
In file included from d:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../..
/include/windows.h:48:0,
                 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:
d:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/windef.h:234:
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.
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.