[ITK-users] IOSTL module does not register the factory
Fitze Thomas (fitz)
fitz at zhaw.ch
Wed Nov 4 07:54:27 EST 2015
Hi all,
I built ITK 4.8.1 with the external IOSTL module and am trying to use it in my CMake project like this:
find_package(ITK REQUIRED IOSTL)
include(${ITK_USE_FILE})
But that does not seem to correctly register the STLMeshIOFactory yielding a a "Could not create IO object for file test.stl” error when trying to load a stl. When i register the factory manually:
itk::STLMeshIOFactory::RegisterOneFactory();
it works as expected. But of course, that messes up all the other factories registered by CMake.
Whats going on here and how do i fix it?
Best,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20151104/041b046b/attachment.html>
More information about the Insight-users
mailing list