[Insight-users] Linker Problems b/n ITK 1.6.0 and Qt

Luis Ibanez luis.ibanez at kitware.com
Wed Aug 18 16:01:48 EDT 2004


Hi Venkata,

Please upgrade to ITK 1.8.

Many symbols from the PNG and ZLIB libraries were
mangled in ITK in order to avoid conflicts with
other libraries that also distribute those symbols.
This is the case of Qt using PNG, as well as FLTK
using PNG.


ITK 1.8 was relased last Monday, you can download
the tar.gz and/or .zip file from the Dowload page
at www.itk.org.



   Regards,


      Luis


---------------------------
Venkata R N Kalluru wrote:

> Hello,
> 
>  
> 
> I am facing serious linker problems between ITK libraries and Qt 
> libraries. I did not have these problems when I was using ITK 1.4.0. Now 
> I upgraded to ITK 1.6.0. A snapshot of linker errors are shown below. If 
> anyone has idea how to overcome these errors plz let me know.
> 
>  
> 
>  
> 
> itkpng.lib(png.obj) : error LNK2005: _png_pass_dsp_mask already defined 
> in qt-mt.lib(png.obj)
> 
> itkpng.lib(png.obj) : error LNK2005: _png_pass_mask already defined in 
> qt-mt.lib(png.obj)
> 
> itkpng.lib(png.obj) : error LNK2005: _png_pass_yinc already defined in 
> qt-mt.lib(png.obj)
> 
> itkpng.lib(png.obj) : error LNK2005: _png_pass_ystart already defined in 
> qt-mt.lib(png.obj)
> 
> itkpng.lib(png.obj) : error LNK2005: _png_pass_inc already defined in 
> qt-mt.lib(png.obj)
> 
> itkpng.lib(png.obj) : error LNK2005: _png_pass_start already defined in 
> qt-mt.lib(png.obj)
> 
> itkpng.lib(png.obj) : error LNK2005: _png_zTXt already defined in 
> qt-mt.lib(png.obj)
> 
> itkpng.lib(png.obj) : error LNK2005: _png_tRNS already defined in 
> qt-mt.lib(png.obj)
> 
> itkpng.lib(png.obj) : error LNK2005: _png_tIME already defined in 
> qt-mt.lib(png.obj)
> 
> itkpng.lib(png.obj) : error LNK2005: _png_tEXt already defined in 
> qt-mt.lib(png.obj)
> 
> ……. ……..
> 
> itkzlib.lib(deflate.obj) : error LNK2005: _deflate_copyright already 
> defined in qt-mt.lib(deflate.obj)
> 
> itkzlib.lib(zutil.obj) : error LNK2005: _z_errmsg already defined in 
> qt-mt.lib(zutil.obj)
> 
> itkzlib.lib(trees.obj) : error LNK2005: __length_code already defined in 
> qt-mt.lib(trees.obj)
> 
> itkzlib.lib(trees.obj) : error LNK2005: __dist_code already defined in 
> qt-mt.lib(trees.obj)
> 
> itkzlib.lib(inftrees.obj) : error LNK2005: _inflate_copyright already 
> defined in qt-mt.lib(inftrees.obj)
> 
> itkzlib.lib(infutil.obj) : error LNK2005: _inflate_mask already defined 
> in qt-mt.lib(infutil.obj)
> 
> …… ……..
> 
> TKIO.lib(itkJPEGImageIO.obj) : error LNK2001: unresolved external symbol 
> _itk_jpeg_read_header
> 
> ITKIO.lib(itkJPEGImageIO.obj) : error LNK2001: unresolved external 
> symbol _itk_jpeg_stdio_src
> 
> ITKIO.lib(itkJPEGImageIO.obj) : error LNK2001: unresolved external 
> symbol _itk_jpeg_CreateDecompress
> 
> ITKIO.lib(itkJPEGImageIO.obj) : error LNK2001: unresolved external 
> symbol _itk_jpeg_destroy_decompress
> 
> ITKIO.lib(itkJPEGImageIO.obj) : error LNK2001: unresolved external 
> symbol _itk_jpeg_std_error
> 
> ITKIO.lib(itkJPEGImageIO.obj) : error LNK2001: unresolved external 
> symbol _itk_jpeg_finish_decompress
> 
> ITKIO.lib(itkJPEGImageIO.obj) : error LNK2001: unresolved external 
> symbol _itk_jpeg_read_scanlines
> 
> ITKIO.lib(itkJPEGImageIO.obj) : error LNK2001: unresolved external 
> symbol _itk_jpeg_start_decompress
> 
> ITKIO.lib(itkJPEGImageIO.obj) : error LNK2001: unresolved external 
> symbol _itk_jpeg_calc_output_dimensions
> 
>  
> 
> Advance Thanks
> 
> -Venkat
> 
> …….. …….
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users






More information about the Insight-users mailing list