[ITK] [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/community/attachments/20151104/041b046b/attachment.html>
-------------- next part --------------
_____________________________________
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://www.kitware.com/products/protraining.php
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://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list