Thanks for the help and tips. I did manage to get ITK up and running. The problems were:<div>1. ITK was saved in a longer tree directory. Making it to, for instance, C:/ITK 3.0....</div><div>2. Building ITK in debug and HellWorld in release. I built both on Debug, It all worked fine now.</div>
<div><br></div><div>Best, </div><div>Fitsum</div><div><br><div><div><div><div class="gmail_quote">On Tue, Sep 29, 2009 at 4:05 PM, Dan Mueller <span dir="ltr"><<a href="mailto:dan.muel@gmail.com">dan.muel@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Fitsum,<br>
<br>
Welcome to ITK!<br>
<br>
The error message you report suggests the compiler can not find the<br>
location where ITK has been built. There can be a number of common<br>
reasons for this:<br>
<br>
1. ITK has not been configured and built correctly.<br>
2. When configuring your project ("HelloWorld" in this case) you did<br>
not correctly specify the ITK_DIR Cmake variable.<br>
3. You are trying to build your project in a different mode than you<br>
built ITK (for example you compiled ITK in Release mode, but are<br>
trying to build your project in Debug mode) -- you must build *both*<br>
ITK and your project in the same mode.<br>
<br>
The following references may be of interest:<br>
<br>
<a href="http://www.itk.org/CourseWare/Training/GettingStarted-I.pdf" target="_blank">http://www.itk.org/CourseWare/Training/GettingStarted-I.pdf</a><br>
<a href="http://www.itk.org/ITK/help/help.html" target="_blank">http://www.itk.org/ITK/help/help.html</a><br>
<br>
Further, I suggest you study the ITK Software Guide. From personal<br>
experience, spending 1+ weeks now will save you countless frustration<br>
in the future.<br>
<br>
<a href="http://www.itk.org/ItkSoftwareGuide.pdf" target="_blank">http://www.itk.org/ItkSoftwareGuide.pdf</a><br>
<br>
Hope this helps.<br>
<br>
Regards, Dan<br>
<br>
<br>
2009/9/29 Reda, Fitsum A <<a href="mailto:fitecx@gmail.com">fitecx@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi all,<br>
> I just starting my PhD in medical image analysis. For the past few days I<br>
> was trying to get started with installing and building ITK.<br>
> However, I keep, getting the "Link: fatal error can't find ITKCommon.lib",<br>
> when i try to compile and build the "HelloWorld" project.<br>
> I would be very grateful if you could help me on this. I am using a Windows<br>
> Vista platform, Microsoft Visual Studio 8 Express.<br>
> Best,<br>
> Fitsum<br>
</div></div>> _____________________________________<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>
> 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>
><br>
><br>
</blockquote></div><br></div></div></div></div>