源码下载地址:https://sourceforge.net/projects/libpng/files/
注意不同平台下载不同的包
These two files contain the source and supporting files
with LF line endings (for Unix/Linux) with the "configure"
script. Both have identical content.
libpng-<version>.tar.xz (LZMA-compressed, recommended)
libpng-<version>.tar.gz
These two files contain the source and supporting files
with CRLF line endings (for Windows), without the "configure"
script. Both have identical content.
lp<version>.7z (LZMA-compressed, recommended)
lp<version>.zip
# Linux 下编译安装
./configure --prefix=$HOME/workspace/libpng/libpng/output
make -j
make install