AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
June 2007

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2007.06.28 12:37 "Problems Building libtiff under Windows XP", by Kevin Myers
2007.06.28 16:28 "Re: Problems Building libtiff under Windows XP", by Kevin Myers

2007.06.28 12:37 "Problems Building libtiff under Windows XP", by Kevin Myers

Hi Folks,

Years ago I was able to successfully build libtiff under Windows, but that
has been too long ago, and I have forgotten whatever tricks might have been
needed.  I don't build applications very often, so I may be doing something
pretty dumb...

Anyway, when I start building libtiff (using nmake /f makefile.vc), the
first thing that looks strange is a bunch of messages similar to the
following:

        cl /nologo /Ox /MD /GX /W3 -I. -Ic:/GnuWin32/include 
        -DAVOID_WIN32_FILEIO -DCHECK_JPEG_YCBCR_SUBSAMPLING
        -DDEFAULT_EXTRASAMPLE_AS_ALPHA -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP
        -DSTRIP_SIZE_DEFAULT=8192 -DPIXARLOG_SUPPORT -DZIP_SUPPORT
        -DJPEG_SUPPORT -DLOGLUV_SUPPORT -DNEXT_SUPPORT -DTHUNDER_SUPPORT
        -DLZW_SUPPORT -DPACKBITS_SUPPORT -DCCITT_SUPPORT
        -DTIF_PLATFORM_CONSOLE -DFILLODER_LSB2MSB  /c tif_aux.c
tif_aux.ctif_aux.c(105) : warning C4273: 'TIFFVGetFieldDefaulted' :
inconsistent dll linkage.  dllexport assumed.
tif_aux.c(257) : warning C4273: 'TIFFGetFieldDefaulted' : inconsistent dll
linkage.  dllexport assumed.

I don't know whether those messages are really a problem or not (similar
messages are produced for almost every source file that is compiled).

But then I get a little further and see this, which doesn't look too
promising:

        cl /nologo /Ox /MD /GX /W3 -I. -Ic:/GnuWin32/include 
        -DAVOID_WIN32_FILEIO -DCHECK_JPEG_YCBCR_SUBSAMPLING
        -DDEFAULT_EXTRASAMPLE_AS_ALPHA -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP
        -DSTRIP_SIZE_DEFAULT=8192 -DPIXARLOG_SUPPORT -DZIP_SUPPORT
        -DJPEG_SUPPORT -DLOGLUV_SUPPORT -DNEXT_SUPPORT -DTHUNDER_SUPPORT
        -DLZW_SUPPORT -DPACKBITS_SUPPORT -DCCITT_SUPPORT
        -DTIF_PLATFORM_CONSOLE -DFILLODER_LSB2MSB  /c tif_getimage.c
tif_getimage.c
tif_getimage.c(74) : warning C4273: 'TIFFRGBAImageOK' : inconsistent dll
linkage.  dllexport assumed.
tif_getimage.c(191) : warning C4273: 'TIFFRGBAImageEnd' : inconsistent dll
linkage.  dllexport assumed.
tif_getimage.c(223) : warning C4273: 'TIFFRGBAImageBegin' : inconsistent dll
linkage.  dllexport assumed.
tif_getimage.c(443) : warning C4273: 'TIFFRGBAImageGet' : inconsistent dll
linkage.  dllexport assumed.
tif_getimage.c(464) : warning C4273: 'TIFFReadRGBAImageOriented' :
inconsistentdll linkage.  dllexport assumed.
tif_getimage.c(489) : warning C4273: 'TIFFReadRGBAImage' : inconsistent dll
linkage.  dllexport assumed.
tif_getimage.c(2048) : warning C4550: expression evaluates to a function
which is missing an argument list
tif_getimage.c(2049) : warning C4550: expression evaluates to a function
which is missing an argument list
tif_getimage.c(2050) : warning C4550: expression evaluates to a function
which is missing an argument list
tif_getimage.c(2051) : warning C4550: expression evaluates to a function
which is missing an argument list
tif_getimage.c(2052) : warning C4550: expression evaluates to a function
which is missing an argument list
tif_getimage.c(2053) : warning C4550: expression evaluates to a function
which is missing an argument list
tif_getimage.c(2089) : warning C4550: expression evaluates to a function
which is missing an argument list
tif_getimage.c(2452) : warning C4273: 'TIFFReadRGBAStrip' : inconsistent dll
linkage.  dllexport assumed.
tif_getimage.c(2503) : warning C4273: 'TIFFReadRGBATile' : inconsistent dll
linkage.  dllexport assumed.

Finally, things go completely to the dogs while attempting to compile
tif_jpeg.c:

        cl /nologo /Ox /MD /GX /W3 -I. -Ic:/GnuWin32/include 
        -DAVOID_WIN32_FILE
IO -DCHECK_JPEG_YCBCR_SUBSAMPLING -DDEFAULT_EXTRASAMPLE_AS_ALPHA
-DSTRIPCHOP_DEF
AULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=8192 -DPIXARLOG_SUPPORT
-DZIP_SUPPORT -
DJPEG_SUPPORT -DLOGLUV_SUPPORT -DNEXT_SUPPORT -DTHUNDER_SUPPORT
-DLZW_SUPPORT -D
PACKBITS_SUPPORT -DCCITT_SUPPORT -DTIF_PLATFORM_CONSOLE -DFILLODER_LSB2MSB 
/c t
if_jpeg.c
tif_jpeg.c
c:/GnuWin32/include\jpeglib.h(95) : error C2061: syntax error : identifier
'UINT16'
c:/GnuWin32/include\jpeglib.h(102) : error C2059: syntax error : '}'
c:/GnuWin32/include\jpeglib.h(109) : error C2061: syntax error : identifier
'UINT8'
c:/GnuWin32/include\jpeglib.h(111) : error C2061: syntax error : identifier
'huffval'
c:/GnuWin32/include\jpeglib.h(111) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(111) : error C2059: syntax error : '['
c:/GnuWin32/include\jpeglib.h(118) : error C2059: syntax error : '}'
c:/GnuWin32/include\jpeglib.h(182) : error C2061: syntax error : identifier
'JQUANT_TBL'
c:/GnuWin32/include\jpeglib.h(186) : error C2059: syntax error : '}'
c:/GnuWin32/include\jpeglib.h(204) : error C2061: syntax error : identifier
'UINT8'
c:/GnuWin32/include\jpeglib.h(209) : error C2059: syntax error : '}'
c:/GnuWin32/include\jpeglib.h(306) : error C2061: syntax error : identifier
'jpeg_component_info'
c:/GnuWin32/include\jpeglib.h(309) : error C2143: syntax error : missing '{'
before '*'
c:/GnuWin32/include\jpeglib.h(312) : error C2143: syntax error : missing '{'
before '*'
c:/GnuWin32/include\jpeglib.h(313) : error C2143: syntax error : missing '{'
before '*'
c:/GnuWin32/include\jpeglib.h(316) : error C2061: syntax error : identifier
'arith_dc_L'
c:/GnuWin32/include\jpeglib.h(316) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(316) : error C2059: syntax error : '['
c:/GnuWin32/include\jpeglib.h(317) : error C2061: syntax error : identifier
'arith_dc_U'
c:/GnuWin32/include\jpeglib.h(317) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(317) : error C2059: syntax error : '['
c:/GnuWin32/include\jpeglib.h(318) : error C2061: syntax error : identifier
'arith_ac_K'
c:/GnuWin32/include\jpeglib.h(318) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(318) : error C2059: syntax error : '['
c:/GnuWin32/include\jpeglib.h(345) : error C2061: syntax error : identifier
'JFIF_major_version'
c:/GnuWin32/include\jpeglib.h(345) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(346) : error C2061: syntax error : identifier
'JFIF_minor_version'
c:/GnuWin32/include\jpeglib.h(346) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(351) : error C2061: syntax error : identifier
'density_unit'
c:/GnuWin32/include\jpeglib.h(351) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(352) : error C2061: syntax error : identifier
'X_density'
c:/GnuWin32/include\jpeglib.h(352) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(353) : error C2061: syntax error : identifier
'Y_density'
c:/GnuWin32/include\jpeglib.h(353) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(386) : error C2143: syntax error : missing '{'
before '*'
c:/GnuWin32/include\jpeglib.h(413) : error C2059: syntax error : '}'
c:/GnuWin32/include\jpeglib.h(529) : error C2061: syntax error : identifier
'JQUANT_TBL'
c:/GnuWin32/include\jpeglib.h(532) : error C2143: syntax error : missing '{'
before '*'
c:/GnuWin32/include\jpeglib.h(533) : error C2143: syntax error : missing '{'
before '*'
c:/GnuWin32/include\jpeglib.h(542) : error C2143: syntax error : missing '{'
before '*'
c:/GnuWin32/include\jpeglib.h(548) : error C2061: syntax error : identifier
'arith_dc_L'
c:/GnuWin32/include\jpeglib.h(548) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(548) : error C2059: syntax error : '['
c:/GnuWin32/include\jpeglib.h(549) : error C2061: syntax error : identifier
'arith_dc_U'
c:/GnuWin32/include\jpeglib.h(549) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(549) : error C2059: syntax error : '['
c:/GnuWin32/include\jpeglib.h(550) : error C2061: syntax error : identifier
'arith_ac_K'
c:/GnuWin32/include\jpeglib.h(550) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(550) : error C2059: syntax error : '['
c:/GnuWin32/include\jpeglib.h(559) : error C2061: syntax error : identifier
'JFIF_major_version'
c:/GnuWin32/include\jpeglib.h(559) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(560) : error C2061: syntax error : identifier
'JFIF_minor_version'
c:/GnuWin32/include\jpeglib.h(560) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(561) : error C2061: syntax error : identifier
'density_unit'
c:/GnuWin32/include\jpeglib.h(561) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(562) : error C2061: syntax error : identifier
'X_density'
c:/GnuWin32/include\jpeglib.h(562) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(563) : error C2061: syntax error : identifier
'Y_density'
c:/GnuWin32/include\jpeglib.h(563) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(565) : error C2061: syntax error : identifier
'Adobe_transform'
c:/GnuWin32/include\jpeglib.h(565) : error C2059: syntax error : ';'
c:/GnuWin32/include\jpeglib.h(604) : error C2143: syntax error : missing '{'
before '*'
c:/GnuWin32/include\jpeglib.h(626) : error C2371: 'master' : redefinition;
different basic types
        c:/GnuWin32/include\jpeglib.h(402) : see declaration of 'master'
c:/GnuWin32/include\jpeglib.h(627) : error C2371: 'main' : redefinition;
different basic types
        c:/GnuWin32/include\jpeglib.h(403) : see declaration of 'main'
c:/GnuWin32/include\jpeglib.h(628) : error C2371: 'coef' : redefinition;
different basic types
        c:/GnuWin32/include\jpeglib.h(405) : see declaration of 'coef'
c:/GnuWin32/include\jpeglib.h(631) : error C2371: 'marker' : redefinition;
different basic types
        c:/GnuWin32/include\jpeglib.h(406) : see declaration of 'marker'
c:/GnuWin32/include\jpeglib.h(632) : error C2371: 'entropy' : redefinition;
different basic types
        c:/GnuWin32/include\jpeglib.h(410) : see declaration of 'entropy'
c:/GnuWin32/include\jpeglib.h(635) : error C2371: 'cconvert' : redefinition;
different basic types
        c:/GnuWin32/include\jpeglib.h(407) : see declaration of 'cconvert'
c:/GnuWin32/include\jpeglib.h(637) : error C2059: syntax error : '}'
c:/GnuWin32/include\jpeglib.h(939) : error C2143: syntax error : missing '{'
before '*'
c:/GnuWin32/include\jpeglib.h(940) : error C2143: syntax error : missing '{'
before '*'
tif_jpeg.c(128) : error C2079: 'c' uses undefined struct
'jpeg_compress_struct'
tif_jpeg.c(129) : error C2079: 'd' uses undefined struct
'jpeg_decompress_struct'
tif_jpeg.c(260) : error C2224: left of '.err' must have struct/union type
tif_jpeg.c(264) : warning C4133: 'function' : incompatible types - from 'int
*'
to 'struct jpeg_compress_struct *'
tif_jpeg.c(264) : error C2027: use of undefined type 'jpeg_compress_struct'
        c:/GnuWin32/include\jpeglib.h(275) : see declaration of
        'jpeg_compress_struct'
tif_jpeg.c(271) : error C2224: left of '.err' must have struct/union type
tif_jpeg.c(275) : warning C4133: 'function' : incompatible types - from 'int
*'
to 'struct jpeg_decompress_struct *'
tif_jpeg.c(275) : error C2027: use of undefined type
'jpeg_decompress_struct'
        c:/GnuWin32/include\jpeglib.h(418) : see declaration of
        'jpeg_decompress_struct'
tif_jpeg.c(281) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_compress_struct *'
tif_jpeg.c(287) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_compress_struct *'
tif_jpeg.c(294) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_compress_struct *'
tif_jpeg.c(300) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_compress_struct *'
tif_jpeg.c(307) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_compress_struct *'
tif_jpeg.c(314) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_compress_struct *'
tif_jpeg.c(321) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_compress_struct *'
tif_jpeg.c(327) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_compress_struct *'
tif_jpeg.c(333) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_compress_struct *'
tif_jpeg.c(339) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_decompress_struct *'
tif_jpeg.c(345) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_decompress_struct *'
tif_jpeg.c(352) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_decompress_struct *'
tif_jpeg.c(359) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_decompress_struct *'
tif_jpeg.c(365) : warning C4133: 'function' : incompatible types - from 'int
*'to 'struct jpeg_decompress_struct *'
tif_jpeg.c(436) : error C2224: left of '.dest' must have struct/union type
tif_jpeg.c(466) : error C2037: left of 'err' specifies undefined
struct/union 'jpeg_compress_struct'
tif_jpeg.c(466) : error C2037: left of 'err' specifies undefined
struct/union 'jpeg_compress_struct'
tif_jpeg.c(466) : error C2037: left of 'err' specifies undefined
struct/union 'jpeg_compress_struct'
tif_jpeg.c(500) : error C2224: left of '.dest' must have struct/union type
tif_jpeg.c(533) : error C2037: left of 'err' specifies undefined
struct/union 'jpeg_decompress_struct'
tif_jpeg.c(533) : error C2037: left of 'err' specifies undefined
struct/union 'jpeg_decompress_struct'
tif_jpeg.c(569) : error C2224: left of '.src' must have struct/union type
tif_jpeg.c(608) : error C2143: syntax error : missing ')' before '*'
tif_jpeg.c(608) : error C2081: 'jpeg_component_info' : name in formal
parameterlist illegal
tif_jpeg.c(608) : error C2143: syntax error : missing '{' before '*'
tif_jpeg.c(609) : error C2059: syntax error : 'type'
tif_jpeg.c(609) : error C2059: syntax error : ')'
tif_jpeg.c(725) : error C2224: left of '.image_width' must have struct/union
type
tif_jpeg.c(726) : error C2224: left of '.image_height' must have
struct/union type
tif_jpeg.c(731) : error C2224: left of '.image_width' must have struct/union
type
tif_jpeg.c(732) : error C2224: left of '.image_height' must have
struct/union type
tif_jpeg.c(734) : error C2224: left of '.num_components' must have
struct/uniontype
tif_jpeg.c(748) : error C2224: left of '.data_precision' must have
struct/uniontype
tif_jpeg.c(755) : error C2224: left of '.comp_info' must have struct/union
type
tif_jpeg.c(756) : error C2224: left of '.comp_info' must have struct/union
type
tif_jpeg.c(760) : error C2224: left of '.comp_info' must have struct/union
type
tif_jpeg.c(761) : error C2224: left of '.comp_info' must have struct/union
type
tif_jpeg.c(775) : error C2224: left of '.comp_info' must have struct/union
type
tif_jpeg.c(775) : fatal error C1003: error count exceeds 100; stopping
compilation
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~4\VC98\BIN\NMAKE.EXE' :
return code '0x2'
Stop.

It looks like I have probably have some kind of configuration problem with
the jpeg library, but there wasn't anything in jconfig.h or jmorecfg.h that
looked unreasonable to my extremely amateur eyes.  Note that I did *not* run
autoconf or configure, because the instructions didn't say to do so, and
they didn't appear to be appropriate for use under Windows (Am I wrong about
that?).

In any case, some tips on what is going wrong would sure be appreciated.

Thanks,
Kevin M.

P.S. - Does this list accept attachments?