Hi Alaa,<br><br>I suspect that you are using ITKv4... :-)<br><br>If so, what you need to do is to go to your CMakeLists.txt file<br>locate the "TARGET_LINK_LIBRARIES(...)" command and<br>in there replace <br>
<br> ITKIO ITKCommon<br><br>with <br><br> ${ITK_LIBRARIES}<br><br>then rerun cmake, and try building again.<br><br><br>For an example on how the CMakeLists.txt <br>file should look, please take a look at:<br>
<br><a href="https://github.com/InsightSoftwareConsortium/ITKTutorialExercises/blob/master/Source/exercise1/CMakeLists.txt">https://github.com/InsightSoftwareConsortium/ITKTutorialExercises/blob/master/Source/exercise1/CMakeLists.txt</a><br>
<br><br> Thanks<br><br><br> Luis<br><br><br>-----------------------------------------<br><div class="gmail_quote">On Sun, Jan 22, 2012 at 3:53 AM, alaa ahmed <span dir="ltr"><<a href="mailto:alaamegawer@yahoo.com">alaamegawer@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-size:12pt;font-family:lucida console,sans-serif"><div style="font-family:'lucida console',sans-serif;font-size:12pt">
<span><br></span></div><div style="font-family:'lucida console',sans-serif;font-size:12pt">Hi luis</div><div style="font-family:'lucida console',sans-serif;font-size:12pt"><br></div><div style="font-family:'lucida console',sans-serif;font-size:12pt">
i'm trying to use ITK Inside visual studio 9 , but i have one problem.</div><div style="font-family:'lucida console',sans-serif;font-size:12pt">but let me first explain what i did to build it.</div><div style="font-family:'lucida console',sans-serif;font-size:12pt">
after create ITK bin and compile them ,then built the installation example.</div><div style="font-family:'lucida console',sans-serif;font-size:12pt">till now everything was going great , but i tried to do external project
, and the CMakeList file contain including ITKIO.lib and ITKCOMMON.lib also but after doing that while i built it at visual studio i faced this error </div><div style="font-family:'lucida console',sans-serif;font-size:12pt">
<span style="font-family:verdana,geneva,helvetica,arial,sans-serif;font-size:13px">'fatal error LNK1104: cannot open file '..\..\bin\Debug\ITKIO.lib'</span><span style="font-family:verdana,geneva,helvetica,arial,sans-serif;font-size:13px"> </span>, so please how can i solve that?</div>
<span class="HOEnZb"><font color="#888888"><div style="font-family:'lucida console',sans-serif;font-size:12pt"><br></div><div style="font-family:'lucida console',sans-serif;font-size:12pt"><br></div><div style="font-family:'lucida console',sans-serif;font-size:12pt">
Alaa</div><div style="font-family:'lucida console',sans-serif;font-size:12pt"><br></div></font></span></div></div></blockquote></div><br>