The libpng package contains libraries used by other programs for reading and writing PNG files.
Download (HTTP): http://prdownloads.sourceforge.net/libpng/libpng-1.2.8.tar.bz2
Download MD5 sum: 00cea4539bea4bd34cbf8b82ff9589cd
Download size: 376 KB
Estimated disk space required: 5.75 MB
Estimated build time: 0.13 SBU
Required Patch to explicitly link libpng against system libraries: http://www.linuxfromscratch.org/blfs/downloads/6.1/libpng-1.2.8-link_to_proper_libs-1.patch
Install libpng by running the following commands:
patch -Np1 -i ../libpng-1.2.8-link_to_proper_libs-1.patch && make prefix=/usr ZLIBINC= \ ZLIBLIB= -f scripts/makefile.linux
To test the results, issue: make -f scripts/makefile.linux test.
Now, as the root user:
make prefix=/usr install -f scripts/makefile.linux
ZLIBINC=; ZLIBLIB=: This forces libpng to look for the Zlib includes and libraries in the default locations (/usr/include and /usr/lib respectively).
-f scripts/makefile.linux: This points make at the Linux version of the Makefile as libpng doesn't use an Autoconf routine. Instead, it has various Makefiles for different platforms.
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.
is a symlink to libpng12-config.
provides configuration information for libpng.
|libpng.[so,a] 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 2005-08-01 13:29:19 -0600