Hi Jianfei Liu,<br><br>Try setting the cmake option<br>CMAKE_SKIP_RPATH to ON<br>(found by toggling advanced mode if using ccmake)<br><br>For more info see:<br><a href="http://en.wikipedia.org/wiki/Rpath_%28linking%29">http://en.wikipedia.org/wiki/Rpath_%28linking%29
</a><br><br>Cheers,<br>&nbsp;- Dan<br><br><div><span class="gmail_quote">On 8/28/07, <b class="gmail_sendername">liu jianfei</b> &lt;<a href="mailto:flair.liu@gmail.com">flair.liu@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear all<br><br>&nbsp;&nbsp;We&#39;ve just rebuilt itk because we switched to Fedora Linux.<br><br>Anyhow, we built&nbsp;&nbsp;it under home directory,&nbsp;&nbsp;but installed it in a<br>standard system location(NFS mounted<br>for all users), but when we build a simple application and do,
<br><br>ldd&nbsp;&nbsp;itktestapp<br><br>shows itktestapp pointing to the libraries in the build path, even<br>though I have LD_LIBRARY_PATH pointing<br>to the official installation location.<br><br>Are there some options we have set in cmake (unkowingly) that causes
<br>it to look at the build path, rather<br>than that pointed to by the LD_LIBRARY_PATH?<br><br>We appreciate your help..<br><br><br>--<br>Sincerely<br>Jianfei Liu<br>_______________________________________________<br>Insight-users mailing list
<br><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote></div><br>