2008.04.22 10:22 "[Tiff] HELP: compiling with MS VC6", by Andrew Wan

I been following the instructions on: http://www.libtiff.org/build.html to build the libtiff from source.

I have Visual C++ 6.0, ran the C:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT then nmake /f C:\Program Files\GnuWin32\src\tiff\3.8.2\tiff-3.8.2-src\Makefile.vc

I get loads of warnings, then this error:

        cl /nologo /Ox /MD /GX /W3 -I.   -DAVOID_WIN32_FILEIO -DCHECK_JPEG_YCBCR_SUBSAMPLING -DDEFAULT_EXTRASAMPLE_AS_ALPHA -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=8192 -DLOGLUV_SUPPORT -DNEXT_SUPPORT -DTHUNDER_SUPPORT -DLZW_SUPPORT -DPACKBITS_SUPPORT -DCCITT_SUPPORT -DTIF_PLATFORM_CONSOLE -DFILLODER_LSB2MSB  /c tif_jpeg.ctif_jpeg.ctif_jpeg.c(87) : fatal error C1083: Cannot open include file: 'jpeglib.h': No such file or directoryNMAKE : fatal error U1077: 'cl' : return code '0x2'Stop.NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return code '0x2'Stop.

C:\Program Files\GnuWin32\src\tiff\3.8.2\tiff-3.8.2-src>

So I look in nmake.opt and find this:

# Uncomment and edit following lines to enable JPEG support.

#
#JPEG_SUPPORT = 1
#JPEGDIR = d:/projects/jpeg-6b
#JPEG_INCLUDE = -I$(JPEGDIR)
#JPEG_LIB = $(JPEGDIR)/Release/jpeg.lib

So I do a search for JPEG_SUPPORT and find that it's pernamently enabled in many libtiff header files. So I download libjpeg, install it. Then tried running: nmake /f C:\Program Files\GnuWin32\src\jpeg\6b\jpeg-6b-src\makefile.vc

and it says it doesn't know how to make jconfig.h???

What is going on... help!

_________________________________________________________________
Express yourself wherever you are. Mobilize!
http://www.gowindowslive.com/Mobile/Landing/Messenger/Default.aspx?Locale=en-US?ocid=TAG_APRIL