From 37c8b068e1d6d647ac5a293c9cc97e34396a71da Mon Sep 17 00:00:00 2001
From: Bob Friesenhahn
-Building the Software under Windows 95/98/NT/2000 with MS
+
Building the Software under Windows 2000/XP/7/8/10 with MS
VC++
With Microsoft Visual C++ installed, and properly configured for
commandline use (you will likely need to source VCVARS32.BAT in
@@ -230,14 +230,23 @@ conventions with a command similar to:
unzip -aa -a tiff-4.0.0.zip-
By default libtiff expects that a pre-built zlib and jpeg -library are provided by the user. If this is not the case, then you -may edit libtiff\tiffconf.h using a text editor (e.g. notepad) and -comment out the entries for JPEG_SUPPORT, PIXARLOG_SUPPORT, and -ZIP_SUPPORT. Ignore the comment at the top of the file which says -that it has no influence on the build, because the statement is not -true for Windows. However, by taking this approach, libtiff will -not be able to open some TIFF files.
+By default the nmake-based libtiff build does not depend on any +additional libraries. Normally libtiff should be built with at least +JPEG and ZIP support so that it can open JPEG and ZIP-compressed TIFF +files. In order to add additional libraries (e.g. libjpeg, zlib, +jbigkit), build those libraries according to their own particular +build instructions, and then edit 'nmake.opt' (using a capable +plain-text editor) to enable use of the libraries, including +specifying where the libraries are installed. It is also necessary to +edit libtiff/tiffconf.vc.h to enable the related configuration defines +(JPEG_SUPPORT, OJPEG_SUPPORT, PIXARLOG_SUPPORT, +ZIP_SUPPORT), or to disable features which are normally +included by default. Ignore the comment at the top of the +libtiff/tiffconf.vc.h file which says that it has no influence on the +build, because the statement is not true for Windows. Please note that +the nmake build copies tiffconf.vc.h to tiffconf.h, and copies +tif_config.vc.h to tif_config.h, overwriting any files which may be +present. Likewise, the 'nmake clean' step removes those files.
To build using the provided makefile.vc you may use:
C:\tiff-4.0.0> nmake /f makefile.vc clean @@ -255,15 +264,11 @@ not be able to open some TIFF files. C:\tiff-4.0.0\tools> nmake /f makefile.vc clean C:\tiff-4.0.0\tools> nmake /f makefile.vc-
This will build the library file -libtiff\libtiff\libtiff.lib. This can be used in Win32 -programs. You may want to adjust the build options before start -compiling. All parameters contained in the nmake.opt -file.This is a plain text file you can open with your favorite text -editor.
+This will build the library +file libtiff\libtiff\libtiff.lib.
The makefile also builds a DLL (libtiff.dll) with an associated -import library (libtiff_i.lib). Any builds using libtiff will need -to include the LIBTIFF\LIBTIFF directory in the include path.
+import library (libtiff_i.lib). Any builds using libtiff will need to +include the LIBTIFF\LIBTIFF directory in the include path.The libtiff\tools\makefile.vc should build .exe's for all the standard TIFF tool programs.