2018.10.26 17:50 "Re: [Tiff] nmake not finding zlib.h", by Camilo Diaz
You were right, I was pointing to the wrong path all this time. I changed it to:
ZIP_SUPPORT = 1
ZLIBDIR = c:/zlib
ZLIB_INCLUDE = -I$(ZLIBDIR)*/include*
ZLIB_LIB = $(ZLIBDIR)*/lib/zlib.lib*
Now, I am trying to enable *jpeg*, but I am getting this error:
libjpeg.lib(jerror.obj): error LNK2019: unresolved external symbol __imp___acrt_iob_func referenced in function output_message libjpeg.lib(jerror.obj): error LNK2019: unresolved external symbol __imp___stdio_common_vfprintf referenced in function _vfprintf_l libjpeg.lib(jerror.obj): error LNK2019: unresolved external symbol __imp___stdio_common_vsprintf referenced in function _vsnprintf_l libjpeg.lib(jmemmgr.obj): error LNK2019: unresolved external symbol __imp___stdio_common_vsscanf referenced in function _vsscanf_l
I guest am pointing to the wrong library. So I am building for win vc 12 64 bit and using C:/Program files/GDAL/libjepg.lib as the jpeg library.
Should I use a different library??
Thank you in advance.
On Fri, Oct 26, 2018 at 11:56 AM Even Rouault <firstname.lastname@example.org> wrote:
On vendredi 26 octobre 2018 11:45:59 CEST Camilo Diaz wrote:
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)
Is zlib.h really in ZLIBDIR=c:/zlib/lib? Isn't it in c:/zlib/include?