Search code examples
c++visual-studiovisual-c++cairo

zlib.vcproj missing while installing Cairo for C++


I'm following this guide to download and install Cairo https://www.cairographics.org/end_to_end_build_for_win32/

I'm in Windows 10, Visual Studio 2017, when i need (following the guide) to copy the zlib.vcproj file the cmd can't find it.

In the guide

BUILD ZLIB

   mkdir %ROOTDIR%\zlib\projects\visualc71
   cd %ROOTDIR%\zlib\projects\visualc71
   copy %ROOTDIR%\libpng\projects\visualc71\zlib.vcproj

Solution

  • Download and install vcpkg, a command-line package manager, from GitHub.com. And use a one liner command to install the cairo package for use with VS 2017 like so. It makes almost effortless to install many open source libraries.

    .\vcpkg install cairo:x64-windows