[cairo] compile cairo 1.0.2 mingw --enable-pdf

Claus Behl claus at bempf.de
Mon Jan 23 13:28:45 PST 2006


Hi,
i have a problem compiling cairo with --enable-pdf with mingw.

i tried

./configure --prefix /c/opt/cairo --enable-pdf --enable-ps

everything seemed to work.
I get some hints that pdf and ps
are experimental features...

then make

I got the following warnings:

cairo-win32-surface.c: In function `_cairo_win32_surface_create_for_dc':
cairo-win32-surface.c:254: warning: return discards qualifiers from
pointer target type
cairo-win32-surface.c:295: warning: return discards qualifiers from
pointer target type
cairo-win32-surface.c:298: warning: return discards qualifiers from
pointer target type
cairo-win32-surface.c: In function `cairo_win32_surface_create':
cairo-win32-surface.c:989: warning: return discards qualifiers from
pointer target type
cairo-win32-surface.c:995: warning: return discards qualifiers from
pointer target type
cairo-win32-surface.c: At top level:
cairo-win32-surface.c:1071: warning: no previous prototype for 'DllMain'
cairo-win32-font.c: In function `_cairo_win32_scaled_font_create_toy':
cairo-win32-font.c:500: warning: passing arg 2 of
`_win32_scaled_font_create' from incompatible pointer type
cairo-win32-font.c: In function
`_cairo_win32_font_face_scaled_font_create':
cairo-win32-font.c:1319: warning: passing arg 2 of
`_win32_scaled_font_create' from incompatible pointer type
cairo-win32-font.c: In function `_win32_scaled_font_create':
cairo-win32-font.c:255: warning: enumeration value
`CAIRO_ANTIALIAS_DEFAULT' not handled in switch
Creating library file: .libs/libcairo.dll.a
.libs/lt-imagediff.exe.c: In function `main':
.libs/lt-imagediff.exe.c:79: warning: passing arg 2 of `execv' from
incompatible pointer type

So far i think everything is ok.
 

And now the problem:
I can compile pdf-surface.c from the directory test/ , but linking gives
me an error .
It seems that cairo_pdf_surface_create isnt in the library.


I tried
gcc -o pdf-surface pdf-surface.c    -I/c/opt/cairo/include/cairo     
-L/c/opt/cairo/lib -lcairo

Any Explanations?

Claus


More information about the cairo mailing list