Building and installing your own libpng from source

Other topics

Simple "cmake" build and install

If you want to use "cmake" (see www.cmake.org), type

cd [your libpng source directory]
cmake . -DCMAKE_INSTALL_PREFIX=/path
make
make install

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

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 https://github.com/glennrp/libpng.git libpng
cd libpng
./autogen.sh
./configure [--prefix=/path]
make install

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

Contributors

Topic Id: 6225

Example Ids: 21542,21543

This site is not affiliated with any of the contributors.