Building libtiff, libjpeg and libpng on Windows

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