[Insight-developers] ITK factory, MacOSX, .so, .dylib

Bill Lorensen bill.lorensen at gmail.com
Tue May 27 21:55:24 EDT 2008


I believe that in Slicer3/Libs/ModuleDescription/ModuleFactory.cxx we
use itksys::DynamicLoader::LibExtension() except for the MAC, where we
return ".dylib" as the extension. We did this because kwsys changed
the way it returned the extenstion for MAC. We also did the same for
Insight/Code/Common/itkObjectFactoryBase.cxx.

Bill

On Tue, May 27, 2008 at 7:53 PM, Sebastien BARRE
<sebastien.barre at kitware.com> wrote:
> Hello ITK,
>
> Quick question: was the factory mechanism on MacOSX fixed so that ITK looks
> for .dylib instead of .so.
>
> I see a few hacks in Slicer3 (which uses ITK 2.6) where IO plugin libraries
> are built (i.e. as .dylib), then a POST_BUILD custom command is added to
> copy it to the same library name, but with a .so extension, so that ITK can
> load it at run-time. And then I realized the .so libs are not even
> installed, so that's not helping :) Anyway, instead of fixing the install
> rule for the .so, can you guys tell me if I can get rid of the POST_BUILD
> command altogether and expect ITK 2.6 to load .dylib fine?
>
> Thanks
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>


More information about the Insight-developers mailing list