[Insight-users] unable to build itk without building zlib and png libs

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Jan 12 10:51:41 EST 2005


On Mon, 10 Jan 2005 14:23:26 -0500, Brad King <brad.king at kitware.com>  
wrote:

> Brad King wrote:
>> Gaetan Lehmann wrote:
>>
>>> If we can't use ITK with system libs, perhap's ITK_USE_SYSTEM_PNG,   
>>> ITK_USE_SYSTEM_TIFF, and ITK_USE_SYSTEM_ZLIB may be removed for the  
>>> next  release :-)
>>   I think there has been some confusion here.  The option to use a  
>> system library has been removed only for JPEG because ITK now has  
>> jpeg8, jpeg12, and jpeg16 libraries that are all compiled specially  
>> (part of recent GDCM changes).  The options for tiff, zlib, and png are  
>> still supposed to work, and they are provided specifically for people  
>> trying to create packages on systems like Linux.  I will investigate  
>> this problem when I get a chance.
>
> Okay, it looks like the SpatialObjects example was trying to link  
> directly to itkzlib and itkpng.  I've fixed this to use  
> ${ITK_ZLIB_LIBRARIES} and ${ITK_PNG_LIBRARIES} instead, which will  
> either reference itkzlib/itkpng or the system versions depending on the  
> settings of ITK_USE_SYSTEM_ZLIB and ITK_USE_SYSTEM_PNG.  This should  
> solve the problem.

It builds on my system :-)

thanks.

    Gaetan




-- 
Gaetan Lehmann <gaetan.lehmann at jouy.inra.fr>
Tel: +33 1 34 65 22 34
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
 


More information about the Insight-users mailing list