This is an old revision of the document!
Building zlib, libpng, libjpeg, libtiff and jasper on Windows
Download and extract the correct versions of zlib, libpng, jpeg and tiff:
Package | Location | Version |
---|---|---|
zlib | http://sourceforge.net/projects/libpng/files/ | 1.2.3 |
libpng | http://sourceforge.net/projects/libpng/files/ | 1.2.40 |
jpeg | http://www.ijg.org/files/ | 7 |
tiff | ftp://ftp.remotesensing.org/pub/libtiff/ | 3.9.2 |
jasper | http://www.ece.uvic.ca/~mdadams/jasper/ | 1.900.1 |
Build them in the order in which they are listed in the table.
To build libz, 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 the other four, run the following commands after extracting the source code:
$ ./configure --prefix=/mingw $ make LDFLAGS=-no-undefined all install