wiki:TBR/UserManual/Zlib

Version 1 (modified by ChrisJohns, on 12/02/05 at 02:21:55) (diff)

Add a zlib page.

Zlib

Zlib

Zlib is a library that provides a general-purpose, legally unencumbered, that is, not covered by any patents, lossless data-compression library. The compression method, an LZ77 variant called deflation, emits compressed data as a sequence of blocks. You can find more about zlib on the zlib web site:

http://www.zlib.net/

Building Zlib

The package builds the library from the original source code.

# Download and unpack the source code for Zlib # Configure the package # Make just the libz.a library # Install the library

$ wget http://www.zlib.net/zlib-1.2.3.tar.gz $ tar zxf zlib-1.2.3.tar.gz $ cd zlib-1.2.3 $ CC=m68k-rtems-gcc ./configure --prefix=/opt/rtems $ make libz.a $ make install