[vtk-developers] MacOS X dynamic loader doesn't read VTK-generated libraries

David Thompson dcthomp at sandia.gov
Sat Dec 13 15:42:46 EST 2003


William A. Hoffman wrote:
> I am not sure this is a bug.  If you want to create a library that
> is loaded on MacOS you have to use the cmake MODULE option to the
> ADD_LIBRARY command.   I don't think you would want to directly load
> one of the VTK libraries.  So, it would have to be a specific module.
> 
> Something like this:
> 
> ADD_LIBRARY( foo MODULE foo.c)
> 
> I think the dynamic loader is doing the right thing for that OS.

Thanks, I did not know about the MODULE option to ADD_LIBRARY. However,
vtkDynamicLoader does still have one issue: CMake creates the module as
"libfoo.so" and the vtkDynamicLoader Prefix and Extension members claim
it should be "foo.dylib", so it will never be found without a symlink.

		David




More information about the vtk-developers mailing list