2018.10.26 15:45 "[Tiff] nmake not finding zlib.h", by Camilo Diaz

2018.10.26 15:45 "[Tiff] nmake not finding zlib.h", by Camilo Diaz

Hi,

I dont know if there is someone here willing to help.
I want to build libtiff for vs 2013; I'm executing

nmake /f Makefile.vc

but it throws the error:

*tif_zip.c(50): fatal error C1083: Cannot open include file: 'zlib.h': No
such file or directory*

In the file nmake.opt I enabled the zlib option like this:

ZIP_SUPPORT = 1
ZLIBDIR = c:/zlib/lib
ZLIB_INCLUDE = -I$(ZLIBDIR)
ZLIB_LIB = $(ZLIBDIR)/zlib.lib

and the executed command line is:

cl /nologo /Ox /MD /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE -I. -Ic:/zlib/lib -DAVOID_WIN32_FILEIO -DCHECK_JPEG_YCBCR_SUBSAMPLING -DDEFAULT_EXTRASAMPLE_AS_ALPHA -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=8192 -DZIP_SUPPORT -DLOGLUV_SUPPORT -DNEXT_SUPPORT -DTHUNDER_SUPPORT -DLZW_SUPPORT -DPACKBITS_SUPPORT -DCCITT_SUPPORT -DTIF_PLATFORM_CONSOLE -DFILLODER_LSB2MSB /c tif_aux.c tif_close.c tif_codec.c tif_color.c tif_compress.c tif_dir.c tif_dirinfo.c tif_dirread.c tif_dirwrite.c tif_dumpmode.c tif_error.c tif_extension.c

tif_fax3.c tif_fax3sm.c tif_getimage.c tif_jbig.c tif_jpeg.c tif_jpeg_12.c
tif_ojpeg.c tif_flush.c tif_luv.c tif_lzw.c tif_next.c tif_open.c
tif_packbits.c tif_pixarlog.c tif_predict.c tif_print.c tif_read.c
tif_swab.c tif_strip.c tif_thunder.c tif_tile.c tif_version.c tif_warning.c
tif_write.c tif_zip.c tif_unix.c

Does anyone know how can I solve/workaround this?

Thank you in advance

--
Kmilo