[Insight-developers] itk zlib with third party libraries?

Brad King brad.king at kitware.com
Wed Jun 6 12:45:27 EDT 2012


On Wed, Jun 6, 2012 at 12:37 PM, Williams, Norman K
<norman-k-williams at uiowa.edu> wrote:
> I almost have DCMTK building properly against the ITK zlib/tiff/jpeg
> libraries.
>
> There is one remaining problem -- it looks like you can't get the
> ITK-mangled zlib symbols unless you include itk_zlib.h.
>
> All the third-party modules are patched to include itk_zlib.h -- I can
> write a CMake script to run through all the DCMTK source after it's
> downloaded and replace the #include statements, but is there a more
> elegant way to deal with this?

Including "itk_zlib.h" is the defined way to get the zlib ITK is
configured to use whether it is the built in one or the system one.
In the case of the built-in itkzlib, it ensures that our zlib.h header
is included and not the system one.  This is important because ours
provides the mangling.

You'll have to hack the external code to include the proper name.
Otherwise we cannot be sure it will get the right header.

-Brad


More information about the Insight-developers mailing list