[Insight-developers] multiple shared ITK libraries on windows

Bill Lorensen bill.lorensen at gmail.com
Mon Mar 21 12:44:11 EDT 2011


I have done nothing with wrapping and shared libs. I really don't know if
you will have issues.

I hope that I am close with the shared lib issue for the ITK proper. Once
that is merged, we can look at the wrapping issues.

Bill

2011/3/21 Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>

>
> Bill,
>
> The wrapping is currently creating ~20 shared libraries, and will create a
> shared lib per module.
> Do you think we can have this kind of problem with vnl and wrapping on
> windows? Have you done something special in CSwig wrapping to avoid that
> problem?
> I'm afraid all the code generated by the wrapping won't fit in a single
> library on windows, so this may not be an option.
>
> Regards,
>
> Gaëtan
>
>
>
>
> Le 17 mars 11 à 14:22, Gaëtan Lehmann a écrit :
>
>
>
>> Will we have the vnl problem with wrapping?
>> With wrapping, there will be as much libs as there are modules.
>>
>>
>> Le 17 mars 11 à 01:27, Bill Hoffman a écrit :
>>
>>  On Wed, Mar 16, 2011 at 6:24 PM, Bill Lorensen <bill.lorensen at gmail.com>
>>> wrote:
>>>
>>>> Here's a question.
>>>>
>>>> In old ITK, there were 15 shared libraries. Because of vnl
>>>> limitations, Bill Hoffman says there should only be 8 (my calculation
>>>> and ITKCommon is the only one that is core ITK). With ITK modular
>>>> there are potentially 45 (my calculation, not counting tests) shared
>>>> libs. Supporting shared libs on windows platforms requires special
>>>> magic.
>>>>
>>>> Should we build any shared libs in ITK modular on windows platforms?
>>>> Is the maintenance burden too high?
>>>>
>>>>
>>> Prior to change 419, there was only one shared library ITKCommon in
>>> ITK on windows. Since that change was in ITKv4, I would hardly call it
>>> old ITK (maybe 4 month old itk...)....  :)
>>>
>>> Anyway, without figuring out how to make vnl shared, I don't think
>>> that we can safely have more than one dll in ITK.  Dll's are an all or
>>> nothing type of thing. I think I remember why this was done in the
>>> first place. The main driving force for the original ITKCommon being
>>> shared was so that plugins could be done for VolView.  With all static
>>> ITK, the trouble was that each plugin got its own copy of the modified
>>> time class static from ITKObject.  This of course totally broke the
>>> pipeline.  So, I think that we should have one ITK dll as we did in
>>> the past, and it should be the one that contains the static for
>>> modified time.  That way plugin type applications can still be created
>>> against ITK.  I will also investigate making vnl shared, but that
>>> maybe too hard...
>>>
>>> -Bill
>>> _______________________________________________
>>> 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.html
>>>
>>> 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
>>>
>>
>> --
>> Gaëtan Lehmann
>> Biologie du Développement et de la Reproduction
>> INRA de Jouy-en-Josas (France)
>> tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
>> http://voxel.jouy.inra.fr  http://www.itk.org
>> http://www.mandriva.org  http://www.bepo.fr
>>
>> _______________________________________________
>> 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.html
>>
>> 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
>>
>
> --
> Gaëtan Lehmann
> Biologie du Développement et de la Reproduction
> INRA de Jouy-en-Josas (France)
> tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
> http://voxel.jouy.inra.fr  http://www.itk.org
> http://www.mandriva.org  http://www.bepo.fr
>
>
> _______________________________________________
> 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.html
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110321/068152b6/attachment.htm>


More information about the Insight-developers mailing list