png Building and installing your own libpng from source Building and installing libpng with "git" and "configure"


This will download libpng from the official "git" repository and build it in your "libpng" directory.

git clone libpng
cd libpng
./configure [--prefix=/path]
make install

where "/path" points to the installation directory where you want to put the libpng "lib", "include", and "bin" subdirectories.