On Wed, Jun 6, 2012 at 12:37 PM, Williams, Norman K
<[email protected]> 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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-developers

Reply via email to