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

Matt McCormick matt.mccormick at kitware.com
Tue Apr 1 21:09:36 EDT 2014


Thanks for working together on this.

To supplement the FAQ entry and informative error message, I created
this example:

  http://review.source.kitware.com/#/c/14933/

Thanks,
Matt

On Tue, Apr 1, 2014 at 3:18 PM, Bradley Lowekamp <blowekamp at mail.nih.gov> wrote:
> Bill,
>
> I have added a fragment identifier to the FAQ:
>
> http://www.itk.org/Wiki/ITK/FAQ#NoFactoryException
>
> I think this should be referenced from the exception, and the details of the problem and the solution should be placed there. What you have written is a good start.
>
> Thanks for the extended effort in addressing this common problem!
> Brad
>
> On Apr 1, 2014, at 2:53 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>
>> Maybe I can resurrect it and use it until we have a better solution?
>>
>> Bill
>>
>>
>> On Tue, Apr 1, 2014 at 11:48 AM, Matt McCormick
>> <matt.mccormick at kitware.com> wrote:
>>> +1.  Bill's fix was the best one I have seen implemented.
>>>
>>> On Tue, Apr 1, 2014 at 2:39 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>> We need to do something to help the users. There are 42 messages (not
>>>> including threads) on the users list. Typically, after a few
>>>> responses, we ask "Are you using cmake to configure your project?" Our
>>>> suggested solutions are not consistent. My patch provided an
>>>> explanation of the most probable cause (not using cmake) and a
>>>> solution (register the IO's you need). These questions seem to be from
>>>> users that are creating apps, not users of apps that someone has
>>>> created.
>>>>
>>>> Bill
>>>>
>>>>
>>>> On Tue, Apr 1, 2014 at 11:31 AM, Matt McCormick
>>>> <matt.mccormick at kitware.com> wrote:
>>>>> On Tue, Apr 1, 2014 at 2:04 PM, Jim Miller <millerjv at gmail.com> wrote:
>>>>>> Is there a way at build time whether we could whether an executable does not have any imageio factories linked in?
>>>>>
>>>>> Nope - the issue is caused by initialization that occurs at runtime.
>>>>> The ImageIO classes are linked in.
>>>>>
>>>>> Matt
>>>>
>>>>
>>>>
>>>> --
>>>> Unpaid intern in BillsBasement at noware dot com
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
_______________________________________________
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