[ITK] [ITK-dev] Missing IO factories when building without cmake

Bill Lorensen bill.lorensen at gmail.com
Mon Mar 31 19:32:54 EDT 2014


Folks,

We have recently seen a couple of users who build their ITK apps
without cmake. When they try to read or write images they get a
message like this:
Description:  Could not create IO object for file
foo.png
  Tried to create one of the following:
  You probably failed to set a file suffix, or
    set the suffix to an unsupported type.

I submitted a gerrit patch:
http://review.source.kitware.com/#/c/14909/

to provide a better description of the exception:

Description:  Could not create IO object for writing file foo.img
  Tried to create one of the following:
  There are no registered IO factories. You probably built your
project without using cmake
  You can register the IO factories you need with:
    #include "itkXXXImageIOFactory.h"
    itk::XXXImageIOFactory::RegisterOneFactory();
     where XXX is e.g. Nifti, PNG, Meta...
       #include "itkNiftImageIOFactory.h"
       itk::NiftiImageIOFactory::RegisterOneFactory();
_______________________________________________
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://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://www.itk.org/mailman/listinfo/insight-developers


More information about the Community mailing list