[Insight-developers] itk zlib with third party libraries?
Jean-Christophe Fillion-Robin
jchris.fillionr at kitware.com
Wed Jun 6 13:34:45 EDT 2012
Folks,
Few months ago, while working on Slicer, I needed to build zlib. For that
purpose, I extracted the tree used in CMake, made sure it could be
installed and found using FindZLIB and finally added the
option ZLIB_MANGLE_PREFIX so that it can be configured with any prefix.
Consider looking at: https://github.com/commontk/zlib/commits/
Hth
Jc
On Wed, Jun 6, 2012 at 12:45 PM, Brad King <brad.king at kitware.com> wrote:
> 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
> _______________________________________________
> 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
>
--
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20120606/1f85238b/attachment.htm>
More information about the Insight-developers
mailing list