[Insight-users] ITK v4 + IO factory classes : runtime error

Bill Lorensen bill.lorensen at gmail.com
Tue Dec 13 11:49:45 EST 2011


When you build ITK, did you build it with all of the modules:
ITK_BUILD_ALL_MODULES ON

http://www.vtk.org/Wiki/ITK_Release_4/Modularization/Configure_and_build_ITK


On Tue, Dec 13, 2011 at 10:42 AM, Malsoaz James <jmalsoaz at yahoo.fr> wrote:
> Hi,
>
> I'm trying to use ITK v4. I have been able to install it successfully (note
> that the option ITK_USE_SYSTEM_GDCM doesn't work, it produce a link error to
> gdcmMSFF).
> Anyway, I built it with the internal version of GDCM.
>
> Unfortunately, when I try a reader class such as itkImageFileReader, I got
> an error regarding the IO factory classes :
> " Could not create IO object for file "C:/test.png"
>   Tried to create one of the following:
>   You probably failed to set a file suffix, or set the suffix to an
> unsupported type."
>
> As you can see, the list of IO object is empty. It seems ITK can't find
> them. I checked in the include dir and several IO files are available such
> as itkGDCMImageIO
>
> Can someone tell me what's wrong ?
>
> Regarding the CMakeLists, I created and used two variables
> - a ITK_INCLUDE_DIR (path to the include dir) to find the include files
> - a ITK_LIBRARIES list (list of path to the libs). Since the libs are not
> the same compared to ITKv3, I'm not sure which libraries to include in this
> list and in which order (if it matters), thus I listed all of them in
> alphabetical order.
>
> I have no warning/error at compilation time.
>
> I hope someone will be able to help me.
> Best
> James.
>
> _____________________________________
> 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.html
>
> 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-users
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-users mailing list