[Insight-users] Compiling ITK on Windows: PNG problems

Luis Ibanez luis.ibanez@kitware.com
Wed, 05 Mar 2003 14:37:35 -0500


Hi Raghavendra


Did you searched for a png.dll  ?

Another possibility is that your png library is not
being rebuilt...

Have you tried with a clean build from scractch ?

-------

If you want to get around this and disable PNG
you can modify the CMakeLists.txt files in the
following directories:


1) Insight/Utilities/
    (remove  "png" in the SUBDIRS command) that
    will prevent png from being built

2) Insight/Code/IO
    remove PNGImageIO and PNGImageIOFactory from
    the list of sources.


Note that this is not a "solution", just a desperate
attempt to get around the real problem.

PNG is build nightly and continuosly in all the
platforms you see in the dashboard. So it is very
likely that the problem is related configuration
of your specific system.




    Luis



---------------------------------------
Raghavendra Chandrashekara wrote:
> Hi Luis,
> 
> 
>>The error messages indicate that you have another
>>version of the PNG library in your system.
>>
>>This version is conflicting with the one that is
>>distributed with ITK in the "Utilities" directory.
>>
>>You will have to locate this DLL library in you
>>disk and make sure that it is not included in
>>your path whenever you are building ITK.
>>
>>What is happening at this point is that the linker
>>finds your png system library before it finds the
>>one in ITK: itkpng.lib
> 
> 
> Actually the error messages about the inconsistent dll linkage occur when I
> am trying to build the png library supplied with ITK in the CVS repository.
> But just to be sure I also checked my system and found no other png
> libraries called itkpng.lib. Also I have downloaded release 1.0.0 of ITK and
> compiled the png library supplied with that version and found no error
> messages when the library was being built.
> 
> Is it possible that I can add the GIPL file readers to release 1.0.0 and
> then recompile as I only need to use the GIPL image readers and not the png
> image readers? Which files would I need to add/change?
> 
> Thanks,
> 
> Raghavendra
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>