Skip to content

Is it possible to install pycairo on Windows 10? I installed GTK for Windows, as Cairo apparently comes with it. #329

@futuremotiondev

Description

@futuremotiondev

On Cairo's Download Page, it states that:

Precompiled binaries for Windows platforms can be obtained in a variety of ways.
Since GTK+ 2.8 and newer depends on Cairo, you can have Cairo installed on Win32 as a side-effect of installing GTK+.
You probably want at least the zlib, cairo, and libpng run-time archives (you can search on those strings to find them in the page). That should be it. Just pop libcairo-2.dll, libpng13.dll and zlib1.dll into your working directory or system PATH, and away you go!

GTK's Setup Page gives two setup options:

I went with MSYS2 and it installed correctly.

As Cairo's page mentions: You probably want at least the zlib, cairo, and libpng run-time archives. Can I somehow extract these from my MSYS2 install > Add to system PATH and then be good to go with installing pycairo?

Or should I start over, and install via gvsbuild instead?

If anyone can create a working outline to get pycairo installed and fully functional on Windows, it would be a massive help.

Thanks so much.

Edit:

I don't know what to make of this. I did a search for the three DLLs that Cairo recommended, and I have many different versions of each - the exception being libpng13.dll - of which I have no versions.

Everything64_87PTjeKwOX

Everything64_bG7gngF02p

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions