README.txt
1To build the libpng library, follow these steps:
2
31) Download the libpng source code from the following link:
4
5https://sourceforge.net/projects/libpng/files/
6
72) Download reference zlib source code from either of the following links:
8
9https://sourceforge.net/projects/libpng/files/
10or
11https://www.zlib.net/
12
133) Build libpng using Microsoft Visual C++:
14 Navigate to "libpng/projects/vstudio", which contains a Microsot Visual C++(MSVC) workspace for building libpng and zlib.
15
164) According to MS policy, binaries should be compiled with a warning level that enables all critical security-relevant checks.
17The provided libpng and zlib project disabled warnings 4244 and 4996, which triggers an issue in TSA binary check.
18Configure the projects and make sure warnings 4244 and 4996 are not been disabled.
19
205) If you are using Visual Studio 2017 version 15.7 or higher version, it raises warning C5045, configure the projects to diable this warning.
21Now you are able to build png and zlib library successfully!
22
23