Building libtiff, libjpeg and libpng on Windows

THESE INSTRUCTIONS ARE INCORRECT

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.

libjpeg

Download and extract http://www.ijg.org/files/jpegsrc.v7.tar.gz:

$ bsdtar xf jpegsrc.v7.tar.gz
$ cd jpeg-7

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:

$ ./configure --prefix=/mingw
$ make install

Do not install to /; remember that / is MSYS and /mingw is MinGW.

Revisit later in re thread safety

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:

$ ./configure --prefix=/mingw
$ make install

Do not install to /; remember that / is MSYS and /mingw is MinGW.

Revisit later in re thread safety

linpng

TBD