AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

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
2005.11.22 08:19 "[Tiff] Error by creating libtiff.lib library : tiff-3.7.4.zip", by Igor Roth
2005.11.24 20:36 "Re: [Tiff] Error by creating libtiff.lib library : tiff-3.7.4.zip", by Frank Warmerdam
2005.11.29 15:16 "[Tiff] 2005.11.24 20:36 "Re: Error by creating libtiff.lib library : tiff-3.7.4.zip", by Frank Warmerdam", by Jacques, David - Fort Worth, TX
2005.12.01 22:28 "Re: [Tiff] Error by creating libtiff.lib library : tiff-3.7.4.zip", by Andrey Kiselev
2005.12.01 23:42 "[Tiff] libtiff.lib library nmake error on Windows", by Jacques, David - Fort Worth, TX

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

-DSTRIPC

T=TIFF_STRIPCHOP -DLOGLUV_SUPPORT -DNEXT_SUPPORT -DTHUNDER_SUPPORT -DLZW_SUPPORT

S_SUPPORT -DCCITT_SUPPORT -DTIF_PLATFORM_CONSOLE -DFILLODER_LSB2MSB /c tif_jpeg

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

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.

/Nicke