Zlib

From RTEMSWiki

Jump to: navigation, search

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.

  1. Download and unpack the source code for Zlib
  2. Configure the package
  3. Make just the libz.a library
  4. 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
Personal tools