[Insight-users] [Insight-developers] ITK factory, MacOSX, .so, .dylib
Bill Hoffman
bill.hoffman at kitware.com
Tue May 27 20:19:49 EDT 2008
Sebastien BARRE 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?
>
On older versions of MACOSX you could not load a .dylib. This is a
recent addition to MacOSX. The .so is a loadable module on the Mac.
So, I don't think you can get rid of it.
-Bill
More information about the Insight-users
mailing list