<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hellow dear </DIV>
<DIV> </DIV>
<DIV>i think you have to rename the cmak file to CMakeLists.txt exactly</DIV>
<DIV> </DIV>
<DIV>and you have to compile RelWithDebInfo not Dbuge or any other,, you chose Debuge as I see. all your porblem will solve when you chose RelWithDebInfo and then right click in the project and chose build</DIV>
<DIV> </DIV>
<DIV>i hope this help</DIV>
<DIV> </DIV>
<DIV>Regards</DIV>
<DIV> </DIV>
<DIV>H.B</DIV>
<DIV><BR><BR>--- On <B>Sat, 10/30/10, fariba_yoo@yahoo.co.uk <I><fariba_yoo@yahoo.co.uk></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: fariba_yoo@yahoo.co.uk <fariba_yoo@yahoo.co.uk><BR>Subject: Re: [Insight-users] Insight-users Digest, Vol 78, Issue 39<BR>To: insight-users@itk.org<BR>Date: Saturday, October 30, 2010, 2:56 PM<BR><BR>
<DIV id=yiv161690894>
<STYLE type=text/css><!--#yiv161690894 DIV {margin:0px;}--></STYLE>
<DIV style="FONT-FAMILY: tahoma, new york, times, serif; FONT-SIZE: 12pt">
<DIV>Hello dear davoud,<BR><BR>I made Cmake.txt just like the one you told me.<BR>and then I copied ImageRegistration2.cxx and and the newly made Cmake.txt to a new folder, then I created another folder for binary one, then using Cmake I configured and generated it, the I opened binary folder and ran imageRegistration2.sln, then built the solution in visual studio but encountered an error,<BR>here I paste the whole output:<BR>1>------ Build started: Project: ImageRegistration2, Configuration: Debug Win32 ------<BR>1>Compiling...<BR>1>ImageRegistration2.cxx<BR>1>d:\itk\code\io\itkImageFileReader.txx(439) : warning C4996: 'std::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'<BR>1> C:\Program Files
(x86)\Microsoft Visual Studio 9.0\VC\include\xutility(2550) : see declaration of 'std::copy'<BR>1> d:\itk\code\io\itkImageFileReader.txx(361) : while compiling class template member function 'void itk::ImageFileReader<TOutputImage>::GenerateData(void)'<BR>1> with<BR>1> [<BR>1> TOutputImage=FixedImageType<BR>1> ]<BR>1> ..\..\ITK\ImageRegistration2Src\ImageRegistration2.cxx(255) : see reference to class template instantiation 'itk::ImageFileReader<TOutputImage>' being compiled<BR>1> with<BR>1>
[<BR>1> TOutputImage=FixedImageType<BR>1> ]<BR>1>Compiling manifest to resources...<BR>1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0<BR>1>Copyright (C) Microsoft Corporation. All rights reserved.<BR>1>Linking...<BR>1> Creating library D:\ITK-Binary\ImageRegistration2Bin\Debug\ImageRegistration2.lib and object D:\ITK-Binary\ImageRegistration2Bin\Debug\ImageRegistration2.exp<BR>1>ImageRegistration2.obj : error LNK2019: unresolved external symbol "protected: __thiscall itk::GradientDescentOptimizer::GradientDescentOptimizer(void)" (??0GradientDescentOptimizer@itk@@IAE@XZ) referenced in function "public: static class itk::SmartPointer<class itk::GradientDescentOptimizer> __cdecl itk::GradientDescentOptimizer::New(void)"
(?New@GradientDescentOptimizer@itk@@SA?AV?$SmartPointer@VGradientDescentOptimizer@itk@@@2@XZ)<BR>1>ImageRegistration2.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall itk::CostFunction::PrintSelf(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent)const " (?PrintSelf@CostFunction@itk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)<BR>1>D:\ITK-Binary\ImageRegistration2Bin\Debug\ImageRegistration2.exe : fatal error LNK1120: 2 unresolved externals<BR>1>Build log was saved at "file://d:\ITK-Binary\ImageRegistration2Bin\ImageRegistration2.dir\Debug\BuildLog.htm"<BR>1>ImageRegistration2 - 3 error(s), 1 warning(s)<BR>========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========<BR><BR><BR>but here I think somewhere in the program I should give my image address, but where and when I had to give the address?<BR><BR><BR>Kind
Regards,<BR>Fariba<BR></DIV>
<DIV style="FONT-FAMILY: tahoma, new york, times, serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 13px"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold"></SPAN></B></FONT><BR>End of Insight-users Digest, Vol 78, Issue 39<BR>*********************************************<BR></DIV></DIV></DIV><BR></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>_____________________________________<BR>Powered by www.kitware.com<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.html" target=_blank>http://www.kitware.com/products/protraining.html</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></BLOCKQUOTE></td></tr></table><br>