title: Missing zlib: cannot build Cairo for use in C++ project on Windows
body: <p>I'm attempting to use Cairo as part of a C++ project. I'm new to dealing with 3rd party libraries so I'm unsure of what I'm doing and if I've missed any steps. I'm also interested in learning how to correctly download, build and include 3rd party libraries in the most consistent way possible.</p>
  <p>Steps so far:</p>
  <ul>
  <li>Installed MinGW64 &amp; MSYS2.</li>
  <li>Added both bin folders to system PATH (c:\mingw64\bin &amp; c:\msys\mingw64\bin).</li>
  <li>Downloaded source code from <a href="https://www.cairographics.org/releases/" rel="nofollow noreferrer">here</a>.</li>
  <li>When running ./configure resolved missing pkg-config and libpng packages by downloading via pacman with no issue.</li>
  <li>Run <code>pacman -S mingw-w64-x86_64-zlib</code> in the shell.</li>
  </ul>
  <p>I'm now being told that I'm missing zlib and receiving this error</p>
  <pre><code>checking whether cairo's script surface backend feature could be enabled... no (requires zlib http://www.gzip.org/zlib/)
  configure: error: recommended script surface backend feature could not be enabled
  </code></pre>
  <p>When checking the bin folder of MSYS2, the zlib.dll file is present, and using the shell tells me that I already have it installed as it is a dependency of libpng.</p>
  <p>The aim is to build Cario and it's dependencies into a format that I can use in my project on Windows 10.</p>