[Insight-users] unable to build itk without building zlib and
png libs
Luis Ibanez
luis.ibanez at kitware.com
Wed Jan 5 15:35:47 EST 2005
Hi Gaetan,
This is not a bug.
The option of using the system zlib, png... libraries has been removed.
The reason is that it became very hard to manage the cases where other
toolkits such as VTK and FLTK also linked to PNG and ZLIB libraries,
since you will have to ensure that they are all of the same version.
Applications using ITK+VTK+FLTK where having symbol collisions at link
time.
In the CVS version of ITK, we are using *only* the PNG, JPEG, TIFF and
ZLIB libraries distributed with ITK in the Utilities subdirectory. Now
the symbols of these libraries are ITK-mangled in order to avoid
conflicts when buildling applications using ITK and (VTK or FLTK).
Simply remove your entries for
ITK_USE_SYSTEM_ZLIB ON
ITK_USE_SYSTEM_PNG ON
or set them to OFF.
Regards,
Luis
-----------------------
Gaetan Lehmann wrote:
>
> Hi,
>
> I can't build itk (cvs version) if I choose
> ITK_USE_SYSTEM_ZLIB ON
> or ITK_USE_SYSTEM_PNG ON
>
> make fail with following error message (zlib give exactly the same
> message, but with zlib instead of png) :
>
> cd /home/papha/glehmann/itk/test/Utilities/png; make cmake.depends;
> make cmake.check_depends; make -f cmake.check_depends; make libitkpng.a
> make[6]: Entering directory `/home/papha/glehmann/itk/test/Utilities/png'
> make[6]: *** No rule to make target `cmake.depends'. Stop.
> make[6]: Leaving directory `/home/papha/glehmann/itk/test/Utilities/png'
> make[6]: Entering directory `/home/papha/glehmann/itk/test/Utilities/png'
> make[6]: *** No rule to make target `cmake.check_depends'. Stop.
> make[6]: Leaving directory `/home/papha/glehmann/itk/test/Utilities/png'
> make[6]: Entering directory `/home/papha/glehmann/itk/test/Utilities/png'
> make[6]: cmake.check_depends: No such file or directory
> make[6]: *** No rule to make target `cmake.check_depends'. Stop.
> make[6]: Leaving directory `/home/papha/glehmann/itk/test/Utilities/png'
> make[6]: Entering directory `/home/papha/glehmann/itk/test/Utilities/png'
> make[6]: *** No rule to make target `libitkpng.a'. Stop.
> make[6]: Leaving directory `/home/papha/glehmann/itk/test/Utilities/png'
> make[5]: *** [/home/papha/glehmann/itk/test/bin/libitkpng.a] Error 2
> make[5]: Leaving directory
> `/home/papha/glehmann/itk/test/Examples/SpatialObjects'
> make[4]: *** [default_target] Error 2
> make[4]: Leaving directory
> `/home/papha/glehmann/itk/test/Examples/SpatialObjects'
> make[3]: *** [default_target_SpatialObjects] Error 2
> make[3]: Leaving directory `/home/papha/glehmann/itk/test/Examples'
> make[2]: *** [default_target] Error 2
> make[2]: Leaving directory `/home/papha/glehmann/itk/test/Examples'
> make[1]: *** [default_target_Examples] Error 2
> make[1]: Leaving directory `/home/papha/glehmann/itk/test'
> make: *** [default_target] Error 2
>
>
>
> build woks fine with ITK_USE_SYSTEM_TIFF ON
>
>
> I can't find ITK_USE_SYSTEM_JPEG in ccmake. This option was avaible
> with ITK 1.8.1.
> Is it a bug ?
>
>
More information about the Insight-users
mailing list