[cairo] Questions about Cairo and Windows

Cxx Joe cxxjoe at googlemail.com
Fri Oct 1 15:18:27 PDT 2010


On Fri, Oct 1, 2010 at 12:46 PM, Lucan1d Beetle <lucan1d at hotmail.com> wrote:
> Does Cairo run as well on Windows as it does on other platforms (i.e.
> Linux)?

See below.

> Can I build Cairo on Windows or do I have to wait for GTK or someone else to
> build the latest version and release the binaries?

I'll repeat what I replied to someone else asking the same question
some weeks ago:


I followed this guide:
http://cairographics.org/end_to_end_build_for_win32/
(which is mostly current, make sure to get the right msys version)

and made this script which nicely compiles cairo and its dependencies
into three DLL files:

http://code.google.com/p/infekt/source/browse/trunk/tools/cairo-maker/build.cmd

(it doesn't perform any error checking or something, but if your
environment is set up correctly (which is not particularly hard at
all), it works like a charm)


> Can Cairo be built using Visual Studio 2010 or be built in such a way that
> the resulting library works well with code built using Visual Studio 2010?

Visual Studio 2008 works perfectly, both in x86 and x64 flavors. I
have yet to try 2010 for this, but it should require very few - if any
- changes.

> Are there any known issues, limitations or "gotchas" related to running
> Cairo on Windows?

Indeed there are, such as that the developers seem to completely
ignore a lot of Win32 related issues. You can see for yourself by
reading through the last few weeks of the list's archives.


Joe


More information about the cairo mailing list