libpng-1.2.12

Introduction to libpng

The libpng package contains libraries used by other programs for reading and writing PNG files.

Package Information

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libpng

Installation of libpng

Install libpng by running the following commands:

./configure --prefix=/usr &&
make

To test the results, issue: make check.

Now, as the root user:

make install &&
install -v -m755 -d /usr/share/doc/libpng-1.2.12 &&
install -v -m644 README libpng.txt /usr/share/doc/libpng-1.2.12

Configuring libpng

Configuration Information

As with most libraries, there is no configuration to do, save that the library directory, i.e., /opt/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run while logged in as root.

Contents

Installed Programs: libpng-config and libpng12-config
Installed Libraries: libpng.so and libpng12.{so,a}
Installed Directory: /usr/include/libpng12 and /usr/share/doc/libpng-1.2.12

Short Descriptions

libpng-config

is a symlink to libpng12-config.

libpng12-config

provides configuration information for libpng.

libpng.so and libpng12.{so,a}

are a collection of routines used to create and manipulate PNG format graphics files. The PNG format was designed as a replacement for GIF and, to a lesser extent, TIFF, with many improvements and extensions and lack of patent problems.

Last updated on 2007-01-15 17:25:53 -0600