<div class="gmail_quote">On Thu, Mar 24, 2011 at 11:58 PM, Ella Maria Kadas <span dir="ltr"><<a href="mailto:ella_kadas@yahoo.com">ella_kadas@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Hi,<div><br></div><div> Thank u for the explanation. Because Watershed Segmentation is not in the Review Folder, i used </div>
<div>TARGET_LINK_LIBRARIES(........... ITKCommon ITKIO)</div><div>Although i configured ITK3.20 with CMake using Use_Review on i still get this error when trying to run the project </div><div><p style="margin:0.0px 0.0px 0.0px 12.0px;font:11.0px Menlo">
ld: library not found for -lITKReview</p><div class="im">
<p style="margin:0.0px 0.0px 0.0px 12.0px;font:11.0px Menlo">collect2: ld returned 1 exit status</p>
</div><p style="margin:0.0px 0.0px 0.0px 12.0px;font:11.0px Menlo">Command /Developer/usr/bin/g++-4.2 failed with exit code 1</p><p style="margin:0.0px 0.0px 0.0px 12.0px;font:11.0px Menlo"> The same happens when i try to run a project in Visual Studio 9 2008.</p>
<p style="margin:0.0px 0.0px 0.0px 12.0px;font:11.0px Menlo">Any idea how i could fix that?</p><p style="margin:0.0px 0.0px 0.0px 12.0px;font:11.0px Menlo">Thanks,</p><p style="margin:0.0px 0.0px 0.0px 12.0px;font:11.0px Menlo">
Ella</p></div></td></tr></tbody></table></blockquote><div> </div></div>Please keep the discussion on the mailing list.<div><br></div><div>Your link line should look exactly like:</div><div>That is, replace everything except ITKReview with <span class="Apple-style-span" style="color: rgb(176, 128, 0); font-family: monospace; font-size: 10px; line-height: 12px; white-space: pre; ">${ITK_LIBRARIES}</span></div>
<div><span class="Apple-style-span" style="color: rgb(176, 128, 0); font-family: monospace; font-size: 10px; line-height: 12px; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 10px; "><pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; color: black; background-color: initial; line-height: normal; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; vertical-align: top; background-position: initial initial; background-repeat: initial initial; ">
<span class="kw1" style="color: rgb(31, 63, 129); ">target_link_libraries</span><span class="sy0" style="color: rgb(25, 125, 139); ">(</span>DeepCopy ITKReview <span class="re0" style="color: rgb(176, 128, 0); ">${ITK_LIBRARIES}</span><span class="sy0" style="color: rgb(25, 125, 139); ">)</span></pre>
<pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; vertical-align: top; ">
<font class="Apple-style-span" color="#197D8B"><br></font></pre><pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; vertical-align: top; ">
<font class="Apple-style-span" color="#197D8B"><br></font></pre><pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; vertical-align: top; ">
<font class="Apple-style-span" color="#197D8B"><br></font></pre><pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; vertical-align: top; ">
<font class="Apple-style-span" color="#197D8B"><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; color: rgb(0, 0, 0); line-height: normal; white-space: normal; ">ld: library not found for -lITKReview</span></font></pre>
</span><div><br></div><div>definitely means that you built ITK without USE_REVIEW on. Either that or you're linking against a different version of ITK than the one you are building.</div><div><br></div>David<br></div>