This is an old revision of the document!
Building libtiff, libjpeg and libpng on Windows
zlib
Start by installing the MinGW version of zlib (http://downloads.sourceforge.net/project/mingw/MinGW%20zlib/zlib-1.2.3-1-mingw32/libz-1.2.3-1-mingw32-dll-1.tar.gz and http://downloads.sourceforge.net/project/mingw/MinGW%20zlib/zlib-1.2.3-1-mingw32/libz-1.2.3-1-mingw32-dev.tar.gz). You probably have the -dll part already, but you need the -dev part to compile software that uses zlib.
libtiff
Download and extract ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.9.2.tar.gz:
$ bsdtar xf tiff-3.9.2.tar.gz $ cd tiff-3.9.2
See incorrect_library_names; libtiff's autogen.sh
is broken, so run the following commands to fix the libtool issue:
$ aclocal $ libtoolize --copy --force $ automake --add-missing --copy --foreign $ autoheader $ autoconf
Now you can configure, build and install:
$ ./autogen.sh $ ./configure --prefix=/mingw $ make install
Do not install to /
; remember that /
is MSYS and /mingw
is MinGW
Revisit later in re thread safety
libjpeg
TBD
linpng
TBD