mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] Cannot Use libtiff to compile


From: David Stone
Subject: [Mingw-cross-env-list] Cannot Use libtiff to compile
Date: Fri, 21 May 2010 14:09:11 -0600

Greetings, 

I must say this project is wonderful, it makes like so much easier to
setup a complete cross compile environment. However I am having trouble
compiling a project that uses libtiff. The ./configure process fails
when checking for -ltiff. Here's the test program that fails:

 #ifdef __cplusplus
 extern "C"
 #endif
 char TIFFOpen ();
 int
 main ()
 {
 return TIFFOpen ();
   ;
   return 0;
 }

compiled with 
i686-pc-mingw32-gcc test.c -ltiff 

Gives the errors:
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_destroy':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:378: undefined reference to 
`_jpeg_destroy'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_write_raw_data':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:321: undefined reference to 
`_jpeg_write_raw_data'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_finish_compress':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:328: undefined reference to 
`_jpeg_finish_compress'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_set_colorspace':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:288: undefined reference to 
`_jpeg_set_colorspace'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_create_decompress':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:272: undefined reference to 
`_jpeg_std_error'
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:276: undefined reference to 
`_jpeg_CreateDecompress'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_abort':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:372: undefined reference to 
`_jpeg_abort'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_error_exit':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:230: undefined reference to 
`_jpeg_abort'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_create_compress':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:261: undefined reference to 
`_jpeg_std_error'
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:265: undefined reference to 
`_jpeg_CreateCompress'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_set_defaults':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:282: undefined reference to 
`_jpeg_set_defaults'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_write_tables':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:334: undefined reference to 
`_jpeg_write_tables'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_finish_decompress':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:366: undefined reference to 
`_jpeg_finish_decompress'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_read_header':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:340: undefined reference to 
`_jpeg_read_header'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_data_src':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:574: undefined reference to 
`_jpeg_resync_to_restart'
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:574: undefined reference to 
`_jpeg_resync_to_restart'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_start_decompress':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:346: undefined reference to 
`_jpeg_start_decompress'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_read_raw_data':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:359: undefined reference to 
`_jpeg_read_raw_data'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_set_quality':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:294: undefined reference to 
`_jpeg_set_quality'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_suppress_tables':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:301: undefined reference to 
`_jpeg_suppress_tables'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_start_compress':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:307: undefined reference to 
`_jpeg_start_compress'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_write_scanlines':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:314: undefined reference to 
`_jpeg_write_scanlines'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_jpeg.o):
 In function `TIFFjpeg_read_scanlines':
/home/dave/libs/tiff-3.9.2/libtiff/tif_jpeg.c:352: undefined reference to 
`_jpeg_read_scanlines'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_ojpeg.o):
 In function `OJPEGLibjpegSessionAbort':
/home/dave/libs/tiff-3.9.2/libtiff/tif_ojpeg.c:1197: undefined reference to 
`_jpeg_destroy'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_ojpeg.o):
 In function `jpeg_read_raw_data_encap':
/home/dave/libs/tiff-3.9.2/libtiff/tif_ojpeg.c:2347: undefined reference to 
`_jpeg_read_raw_data'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_ojpeg.o):
 In function `jpeg_create_decompress_encap':
/home/dave/libs/tiff-3.9.2/libtiff/tif_ojpeg.c:2315: undefined reference to 
`_jpeg_CreateDecompress'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_ojpeg.o):
 In function `jpeg_start_decompress_encap':
/home/dave/libs/tiff-3.9.2/libtiff/tif_ojpeg.c:2331: undefined reference to 
`_jpeg_start_decompress'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_ojpeg.o):
 In function `jpeg_read_scanlines_encap':
/home/dave/libs/tiff-3.9.2/libtiff/tif_ojpeg.c:2339: undefined reference to 
`_jpeg_read_scanlines'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_ojpeg.o):
 In function `jpeg_read_header_encap':
/home/dave/libs/tiff-3.9.2/libtiff/tif_ojpeg.c:2323: undefined reference to 
`_jpeg_read_header'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_ojpeg.o):
 In function `OJPEGWriteHeaderInfo':
/home/dave/libs/tiff-3.9.2/libtiff/tif_ojpeg.c:1110: undefined reference to 
`_jpeg_std_error'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_zip.o):
 In function `ZIPCleanup':
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:289: undefined reference to 
`_inflateEnd'
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:286: undefined reference to 
`_deflateEnd'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_zip.o):
 In function `ZIPEncode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:223: undefined reference to 
`_deflate'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_zip.o):
 In function `ZIPPostEncode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:251: undefined reference to 
`_deflate'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_zip.o):
 In function `ZIPPreEncode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:204: undefined reference to 
`_deflateReset'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_zip.o):
 In function `ZIPSetupEncode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:180: undefined reference to 
`_deflateInit_'
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:176: undefined reference to 
`_inflateEnd'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_zip.o):
 In function `ZIPDecode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:142: undefined reference to 
`_inflate'
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:149: undefined reference to 
`_inflateSync'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_zip.o):
 In function `ZIPPreDecode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:126: undefined reference to 
`_inflateReset'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_zip.o):
 In function `ZIPSetupDecode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:101: undefined reference to 
`_inflateInit_'
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:97: undefined reference to 
`_deflateEnd'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_zip.o):
 In function `ZIPVSetField':
/home/dave/libs/tiff-3.9.2/libtiff/tif_zip.c:308: undefined reference to 
`_deflateParams'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_pixarlog.o):
 In function `PixarLogVSetField':
/home/dave/libs/tiff-3.9.2/libtiff/tif_pixarlog.c:1215: undefined reference to 
`_deflateParams'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_pixarlog.o):
 In function `PixarLogCleanup':
/home/dave/libs/tiff-3.9.2/libtiff/tif_pixarlog.c:1192: undefined reference to 
`_inflateEnd'
/home/dave/libs/tiff-3.9.2/libtiff/tif_pixarlog.c:1194: undefined reference to 
`_deflateEnd'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_pixarlog.o):
 In function `PixarLogPostEncode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_pixarlog.c:1136: undefined reference to 
`_deflate'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_pixarlog.o):
 In function `PixarLogEncode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_pixarlog.c:1106: undefined reference to 
`_deflate'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_pixarlog.o):
 In function `PixarLogPreEncode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_pixarlog.c:874: undefined reference to 
`_deflateReset'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_pixarlog.o):
 In function `PixarLogSetupEncode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_pixarlog.c:853: undefined reference to 
`_deflateInit_'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_pixarlog.o):
 In function `PixarLogDecode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_pixarlog.c:738: undefined reference to 
`_inflate'
/home/dave/libs/tiff-3.9.2/libtiff/tif_pixarlog.c:746: undefined reference to 
`_inflateSync'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_pixarlog.o):
 In function `PixarLogPreDecode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_pixarlog.c:699: undefined reference to 
`_inflateReset'
/home/dave/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.5.0/../../../../i686-pc-mingw32/lib/libtiff.a(tif_pixarlog.o):
 In function `PixarLogSetupDecode':
/home/dave/libs/tiff-3.9.2/libtiff/tif_pixarlog.c:678: undefined reference to 
`_inflateInit_'
collect2: ld returned 1 exit status

I've tried version 2.12 and the development version from mercurial and they 
both give the same result. 
It's just not possible to compile with tiff. I've tried recompiling tiff and 
jpeg manually and they compile fine but the test still gives the same result. 
Any help will be appreciated. 

David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]