This is an old revision of the document!
Building zlib and bzip2 on Windows
Download and extract the correct versions of zlib and bzip2:
Package | Location | Version |
---|---|---|
zlib | http://sourceforge.net/projects/libpng/files/ | 1.2.3 |
bzip2 | http://www.bzip.org/downloads.html | 1.0.5 |
To build zlib, run the following commands after extracting the source code:
$ make -f win32/Makefile.gcc INCLUDE_PATH=/mingw/include LIBRARY_PATH=/mingw/lib all install $ mv /mingw/lib/libzdll.a /mingw/lib/libz.dll.a
To build bzip2, run the following commands after extracting the source code:
$ LDFLAGS="-no-undefined" ./configure --prefix=/mingw $ make all install