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.
Steps so far:
- Installed MinGW64 & MSYS2.
- Added both bin folders to system PATH (c:mingw64in & c:msysmingw64in).
- Downloaded source code from here.
- When running ./configure resolved missing pkg-config and libpng packages by downloading via pacman with no issue.
- Run
pacman -S mingw-w64-x86_64-zlib
in the shell.
I'm now being told that I'm missing zlib and receiving this error
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
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.
The aim is to build Cario and it's dependencies into a format that I can use in my project on Windows 10.
question from:
https://stackoverflow.com/questions/65918996/missing-zlib-cannot-build-cairo-for-use-in-c-project-on-windows 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…