[Insight-users] itkTransformToDeformationFieldSource.h is not found

Tom Vercauteren tom.vercauteren at gmail.com
Thu Apr 8 04:11:02 EDT 2010


Hey Marius,

Just for the record. If elastix
  1) requires ITK to be build with ITK_USE_REVIEW ON
and if
  2) includes ITK from cmake in a standard way, i.e. you end up
relying on ITKConfig.cmake
you could provide the users with a sensible cmake message instead of a
difficult to interpret compile error. Here is an example:

if(NOT ITK_USE_REVIEW)
  message(SEND_ERROR "ITK_USE_REVIEW has not been set to ON when
compiling ITK. This option is mandatory for this project to build.
Please recompile your ITK installation.")
endif()

Hope this helps,
Tom

2010/4/8  <M.Staring at lumc.nl>:
> Hi Xi Liang,
>
> When you cmake the ITK you will find the option ITK_USE_REVIEW, which is OFF by default. Just put it to ON, regenerate the project with cmake, and recompile.
>
> For elastix there are some other ITK options you have to make sure are ON or OFF, see the text file in your elastix tree:
>
>        elastix/dox/ITKCompilationOptions.txt
>
> With kind regards,
>
> Marius
>
>
>> -----Original Message-----
>> From: insight-users-bounces at itk.org
>> [mailto:insight-users-bounces at itk.org] On Behalf Of Xi LIANG
>> Sent: donderdag 8 april 2010 8:52
>> To: Insight Users
>> Subject: [Insight-users]
>> itkTransformToDeformationFieldSource.h is not found
>>
>> Dear all,
>>
>> I tried to build a open source software (Elastix) developed
>> based on ITK. There is an error that the file of
>> itkTransformToDeformationFieldSource.h is not found.
>> However, I did find this file in InsightToolkit-3.16.0\Code\Review.
>>
>> I am not sure why this file was not found. My guess is that
>> the files under dir of \Review are not included when building
>> the ITK. If this is the case, how should I fix this problem?
>>
>> Kind regards,
>>
>> --------------------------------
>> Xi Liang
>>
>> 梁茜
>> --------------------------------
>>
>>
>>
>>
>> ________________________________
>>
>> Hotmail: Free, trusted and rich email service. Get it now.
>> <https://signup.live.com/signup.aspx?id=60969>
>>
> _____________________________________
> 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
>


More information about the Insight-users mailing list