[cairo] Cairo fails to render under Windows/MSVC
Tor Lillqvist
tml at iki.fi
Mon May 31 21:47:26 PDT 2010
> To test this I just installed MinGW and compiled the example with
> that. The result is the same, i.e. the background color is rendered,
> but the stroke, fill and text are not (even without pango, the stroke
> and fill are not rendered).
For what it's worth, for me, the program works fine on Windows,
compiled with MinGW, MSVS6 or MSVC9 ("2008"). That's using the
developer and runtime packages of pango, cairo and glib for Windows as
on ftp.gnome.org.
The command line I used for MSVC was:
cl -MD -Ic:/devel/dist/win32/pango-1.28.0-1/include/pango-1.0
-Ic:/devel/dist/win32/atk-1.30.0-1/include/atk-1.0
-Ic:/devel/dist/win32/glib-2.24.1-1/include/glib-2.0
-Ic:/devel/dist/win32/glib-2.24.1-1/lib/glib-2.0/include
-Ic:/devel/dist/win32/cairo-1.8.10-3/include/cairo basic_example.c
-link -libpath:c:/devel/dist/win32/pango-1.28.0-1/lib
-libpath:c:/devel/dist/win32/atk-1.30.0-1/lib
-libpath:c:/devel/dist/win32/glib-2.24.1-1/lib
-libpath:c:/devel/dist/win32/cairo-1.8.10-3/lib pangocairo-1.0.lib
pango-1.0.lib cairo.lib gobject-2.0.lib glib-2.0.lib
(and no, I didn't type that manually...) You can deduce the versions /
builds of the packages from the directory names.
--tml
More information about the cairo
mailing list