2005.09.27 16:15 "[Tiff] libtiff 3.7.4 win32 fails compilation", by Nicklas Norling

2005.09.27 19:16 "Re: [Tiff] libtiff 3.7.4 win32 fails compilation", by Nicklas Norling

I've downloaded tiff-3.7.4.zip and tried to compile using VS.NET. I have the default settings (unmodified source tree) and get:

        cl /nologo /Ox /MD /GX /W3 -I.   -DDEFAULT_EXTRASAMPLE_AS_ALPHA




tif_jpeg.c(75): fatal error C1083: Cannot open include file:
'jpeglib.h': No su
NMAKE: fatal error U1077: 'cl': return code '0x2'

I checked the nmake.opt file and made sure jpg support is commented and also tried

commenting CHECK_JPEG_YCBCR_SUBSAMPLING with no effect.

Not being a C guy it's certianly possible I've screwed something up... Any pointers?

This now compiles. The problem I found was that the libtiff subdir Makefile.vc contains two statements top copy tiffconf.h.in -> tiffconf.h and tif_conf.h.in -> tif_conf.h. Since (guessing now) the tiffconf.h file already exists in the zip distribution it won't get overwritten and only the tif_conf.h presumably gets created.

I removed the original tiffconf.h file and the tif_conf.h file and re-ran nmake. This time the correct tiffconf.h was created but no (!) tif_conf.h, the compile worked (with a few warnings that looked benign to me).

I guess the nmake.opt settings are ignored in this file for some reason. Maybe this should somehow be fixed?

Fiddling with the original tiffconf.h will make the compile stop because of missing zip lib.