2007.03.27 07:51 "Re: [Tiff] "compiling libtiff using libjpeg under windows"", by Andrey Kiselev
On Tue, Mar 27, 2007 at 08:26:49AM +0100, alexander johnson wrote:
Unfortunately I never got it to work, I spent days at it but had to give up in the end. It seems like it should be something very easy to do but I just couldn't figure it out.
I think we need to set the path to the JPEG files so they link properly. If you see Makefile.vc, the lines:
INCL = -I. $(JPEG_INCLUDE) $(ZLIB_INCLUDE) suggest this.
I think these are set in nmake.opt. I did try setting the path there, but I got different errors.
nmake.opt contains all variables that need to be adjusted in order to build the library with external codecs. I am always using the recommended method myself on the all range of MS compilers starting from VC 6, so I am sure that it works. The only thing you need to carefully control is compilation parameters (OPTFLAGS). You should ensure that all softawre you want to link is built with the same runtime stuff (e.g., if you want compile libtiff using /MD, then libjpeg should be built in the same way).
Andrey V. Kiselev