[Insight-users] compiling VTK and ITK

Sergio Andres sergio at unizar.es
Mon, 26 Apr 2004 13:42:57 +0200


Hi all,

I am trying to compile my application using ITK 1.6 and VTK 4.2 ,
but I get some link errors related to png and jpeg libraries...

The error messages are like these:

vtkpng.lib(png.obj) : error LNK2005: _png_pass_dsp_mask already defined 
in itkpng.lib(png.obj)
vtkpng.lib(png.obj) : error LNK2005: _png_pass_mask already defined in 
itkpng.lib(png.obj)
vtkpng.lib(png.obj) : error LNK2005: _png_pass_yinc already defined in 
itkpng.lib(png.obj)
vtkpng.lib(png.obj) : error LNK2005: _png_pass_ystart already defined in 
itkpng.lib(png.obj)
vtkpng.lib(png.obj) : error LNK2005: _png_pass_inc already defined in 
itkpng.lib(png.obj)
vtkpng.lib(png.obj) : error LNK2005: _png_pass_start already defined in 
itkpng.lib(png.obj)
vtkpng.lib(png.obj) : error LNK2005: _png_zTXt already defined in 
itkpng.lib(png.obj)
vtkpng.lib(png.obj) : error LNK2005: _png_tRNS already defined in 
itkpng.lib(png.obj)

I suppose that they are conflicts between ITK and VTK ..
but I don't know if I am doing things wrong..

Other messages are related to the following libraries: vtkzlib.lib, 
itkvnl.lib, ITKIO.lib

Any help will be appreciated..

Regards,
Sergio.