webcp.hostinghacks.net/slackware | libraries

home   ·.   download   ·.   install   ·.   faq   ·.   forums   ·.   contribute   ·.   change log   ·.   toolbox
SYNOPSIS:

Compression and Graphics libraries support. Needed for:

PREREQUISITES: source packages

last updated: May 2005
PNG

PNG (Portable Network Graphics) is an extensible file format for the lossless, portable, well-compressed storage of raster images. PNG provides a patent-free replacement for GIF and can also replace many common uses of TIFF.

cd /usr/src
wget http://unc.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.8.tar.gz
# wget http://hostinghacks.net/dist/libpng-1.2.8.tar.gz
tar -xvzf libpng-1.2.8.tar.gz
cd libpng-1.2.8

cp scripts/makefile.linux makefile

make
make install
make install-headers
JPEG -6b

This package contains C software to implement JPEG image compression and decompression. JPEG is a standardized compression method for full-color and gray-scale images intended for compressing "real-world" scenes; line drawings, cartoons and other non-realistic images are not its strong suit. JPEG is lossy, meaning that the output image is not exactly identical to the input image. Hence you must not use JPEG if you have to have identical output bits. ftp://ftp.uu.net/graphics/jpeg/ | http://www.ijg.org

cd /usr/src
wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz
# wget http://hostinghacks.net/dist/jpegsrc.v6b.tar.gz
tar -xvzf jpegsrc.v6b.tar.gz

cd jpeg-6b
./configure --prefix=/usr

make

mkdir -p /usr/man/man1
make install
make install-headers
make install-lib
FREETYPE

http://www.freetype.org/

cd /usr/src
wget http://ufpr.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.9.tar.gz
# wget hostinghacks.net/dist/freetype-2.1.9.tar.gz
tar -xvzf freetype-2.1.9.tar.gz

cd /usr/src/freetype-2.1.9
./configure --prefix=/usr
make
make install
GD

GD - An ANSI C library for the dynamic creation of images - www.boutell.com/gd/. The format of images you are able to manipulate depend on the version of GD you install, and any other libraries GD might need to access those image formats. Versions of GD older than gd-1.6 support GIF format images, and do not support PNG, where versions greater than gd-1.6 and less than gd-2.0.28 support PNG, not GIF. GIF support was re-enabled in gd-2.0.28.

cd /usr/src
wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
# wget http://hostinghacks.net/dist/gd-2.0.33.tar.gz
tar -zxf gd-2.0.33.tar.gz
cd /usr/src/gd-2.0.33

./configure --prefix=/usr \
--with-png=/usr \
--with-freetype=/usr \
--with-jpeg=/usr \
--with-zlib=/usr

make
make install
# make clean
# make distclean
NOTES

to check which version of zlib you are currently using:

man zlib

to check which version of libpng you are currently using:

man libpng

to check which version of libjpg you are currently using:

head -40 /usr/include/jpeglib.h

to check which version of freetype you are currently using:

???

to check which version of gd you are currently using:

???

The following 3rd-party libraries will be used by gd if found by configure:

1. zlib, available from http://www.gzip.org/zlib/
   Data compression library

2. libpng, available from http://www.libpng.org/pub/png/
   Portable Network Graphics library; requires zlib

3. FreeType 2.x, available from http://www.freetype.org/
   Free, high-quality, and portable font engine

4. JPEG library, available from http://www.ijg.org/
   Portable JPEG compression/decompression library

5. XPM, available from http://koala.ilog.fr/lehors/xpm.html
   X Pixmap library
   
If any of these libraries are installed, but not detected by configure,
you can use the following command line options:

--with-png=DIR

  Without the DIR argument, configure will check for png header files and
  libraries in a default location. To switch off png support, use
  --without-png, or --with-png=no.

  If the DIR argument is specified, configure tries to find the png header
  files in DIR/include, and the libraries in DIR/lib. To accommodate
  OpenBSD ports, DIR/include/libpng is also checked if necessary.

--with-freetype=DIR

  Dto. for freetype 2.x library. The search path for include files is
  DIR/include/freetype2.

--with-jpeg=DIR

  Dto. for jpeg library.

--with-xpm=DIR

  Dto. for xpm library.

Last but not least, if all else fails, you can still try Tom Boutell's
original, perl-based configure utility, which is included in this
distribution as configure.pl, or even the included makefile.sample.
Powered By Fat Penguin Hosting   |   Disclaimer