Dear Iman,<div><br></div><div>    I think your open source  Demons Registration source code is based on ITK version 3.xx and the build</div><div>problem is because you built it with ITK version 4.1.</div><div><br></div><div>
    itk::TransformToDeformationFieldSource was changed to 
itk::TransformToDisplacementFieldSource in ITK 4.</div><div>If you change the class name in the code, you should be able to compile and run the program.</div><div>    </div><div>    If you still have build problems, look for the changes in the ITK class names from version 3.xx to 4.xx</div>
<div>and the slight changes you may have to make for your CMakeList to reflect this ITK version 4.xx.</div><div><br></div><div><br></div><div>Hope this help,</div><div><br></div><div>Best regards,</div><div><br></div><div>
Ja</div><div><br><br><div class="gmail_quote">On Sun, May 27, 2012 at 9:30 PM, Iman Nekooeimehr <span dir="ltr">&lt;<a href="mailto:nekooeimehr@mail.usf.edu" target="_blank">nekooeimehr@mail.usf.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello again,<br>
<br>
What is the code needed to add to cmakeList, I tried different codes<br>
and none of them work.<br>
<br>
Regards,<br>
Iman Nekooeimehr<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, May 25, 2012 at 4:07 AM, Abayiz &lt;<a href="mailto:abayiz@yahoo.com">abayiz@yahoo.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; Did you add &quot;ITKReview&quot; in the &quot;TARGET_LINK_LIBRARIES&quot; part of your<br>
&gt; CMakeList ?<br>
&gt;<br>
&gt; Abayiz<br>
&gt;<br>
&gt; ________________________________<br>
&gt; From: Iman Nekooeimehr &lt;<a href="mailto:nekooeimehr@mail.usf.edu">nekooeimehr@mail.usf.edu</a>&gt;<br>
&gt; To: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>
&gt; Sent: Friday, May 25, 2012 4:12 AM<br>
&gt; Subject: [Insight-users] Problem working with installing DemonsRegistration<br>
&gt;<br>
&gt; Dear all,<br>
&gt;<br>
&gt; I tried to build an open source software (Demons Registration)<br>
&gt; developed based on ITK by Tom Varcauteren. There is an error that the<br>
&gt; file itkTransformToDeformationFieldSource.h is not found. I also set<br>
&gt; the option ITK_USE_REVIEW on when I cmake ITK.<br>
&gt;<br>
&gt; CMAKE version is 2.8.8, ITK version is 4.1 and I am using VS2010.<br>
&gt;<br>
&gt; I really appreciate any help,<br>
&gt;<br>
&gt; Regards,<br>
&gt; Iman Nekooeimehr<br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>