<div dir="ltr"><div><div>Dear Brad,<br></div>thanks for your quick reply.<br><br></div>Your assumptions were right :-)<br><br><div><div><div><div><div>Thanks for the explanations. We tried using shorter paths for all third-party libraries (including ITK) and ours, but did not solve the issue. <br><br></div><div>We then tried 3). And that solved the problem indeed.<br></div><div><br></div><div>So thanks again Brad.<br><br></div><div>Kind regards,<br>JON HAITZ<br></div><div><br><br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><br></div></div></div>
<br><div class="gmail_quote">On 11 December 2014 at 18:23, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello,<div><br></div><div>I am going to assume you are using CMake's XCode generator, and you are finding and using ITK from the build tree in CMake</div><div><br></div><div>Unfortunately, the XCode environment has some limitation with the command line length causing paths to be truncated when a large number of include and link library paths are listed. I presume this may be the cause of the error you are seeing.</div><div><br></div><div>Three possible solutions:</div><div><br></div><div>1) install ITK into a directory and use it from there. This will significantly reduce the number of include paths and option needed.</div><div>2) Use ITK in a modular fashion and specify only the ITK components needed in the CMake FIND_PACKAGE command.</div><div>3) Switch to another generator, such as unix make</div><div><br></div><div>Doing 3 is probably the quickest to test if this really is a caused by the XCode generator limitations.</div><div><br></div><div>Brad</div><div><br><div><div><div class="h5"><div>On Dec 11, 2014, at 11:19 AM, Jon Haitz Legarreta <<a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a>> wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr"><div><div>Hi there,<br></div>we are experiencing some issues when liking a project of our own to ITK 4.6.1 in OS X using XCode.<br><br></div>The Xcode output says:<br><i>ld: library not found for -litkdouble-conversion</i><br><br><div>However, the library is actually in the lib/{Debug/Release} folder in the ITK binaries, together with the rest of the ITK libraries compiled.<br><br></div><div>I would dare to say that XCode is unable to find any of the ITK libraries; that is, the message mentions the double-conversion library because it may be the first library it looks for.<br></div><div><br></div><div>Any guess?<br><br><br></div><div>Thanks,<br><br></div><div>JON HAITZ<br></div><div><br><br><br><br><br><br><br clear="all"><div><div><div><div dir="ltr"><table align="center" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><br></td></tr><tr><td><table align="center" border="0" cellpadding="0"><tbody><tr><td><br></td></tr></tbody></table></td></tr></tbody></table></div></div></div>
</div></div></div></div></div>
_______________________________________________<br>Community mailing list<br><a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br><a href="http://public.kitware.com/mailman/listinfo/community" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br></blockquote></div><br></div></div></blockquote></div></div></div></div></div></div></div></div>