<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>As the symbols in the ITK library are not managled. So if you try to use the a system expat in conjunction with the ITK expat you could have conflicting symbols and undefined behavior. Simply installing the header in a different location will not solve this problem.</div><div><br></div><div>Configuring ITK to use a system expat will fully solve you problem.</div><div><br></div><div>You can find how other third party libraries did it here:</div><div><br></div><div><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/ThirdParty/JPEG/CMakeLists.txt">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/ThirdParty/JPEG/CMakeLists.txt</a></div><div><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/ThirdParty/TIFF/CMakeLists.txt">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/ThirdParty/TIFF/CMakeLists.txt</a></div><div><br></div><div>Would you like to try to create a patch to address this issue?</div><div><br></div><div>Thanks,</div><div>Brad</div><div><br><div><div>On Jun 2, 2014, at 8:22 AM, Rashad M <<a href="mailto:mohammedrashadkm@gmail.com">mohammedrashadkm@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 2, 2014 at 2:07 PM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">Hello,<div><br></div><div>

It would be quite reasonable to support using a system expact.</div>
<div><br></div><div>Could you please describe you problem a little clearer? Are you having problem compiling ITK? or an Application which uses ITK? or Issues compiling independent programs after ITK is installed?</div></div>


</blockquote><div><br></div><div>My problem not with compiling/installing ITK but when compiling libkml, a dependency of OTB which uses ITK. This uses an expat library and instead of using  a system expat i wind up using expat from ITK as expat.h is installed in <prefix>/include/ITK4.6. I can confirm using system expat doesnt have any problem with libkml when used with OTB. </div>

<div><br></div><div>If you would like to have a look at bug report, see here[1]. I had a temporary solution to build libkml before adding itk headers but a best would be to have a fix in ITK' expat library.</div><div>

<br></div><div>The issue is coming using an installed version of ITK. </div><div>So if you are planning to upgrade expat library to its latest version or use system expat then the problem is solved. </div><div><br></div>
<div>
[1] <a href="http://bugs.orfeo-toolbox.org/view.php?id=879">http://bugs.orfeo-toolbox.org/view.php?id=879</a></div><div> </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div style="word-wrap:break-word"><div><br></div>
<div>Thanks,</div><div>Brad</div><div><br><div><div><div>On Jun 1, 2014, at 3:29 AM, Rashad M <<a href="mailto:mohammedrashadkm@gmail.com" target="_blank">mohammedrashadkm@gmail.com</a>> wrote:</div>
<br></div><blockquote type="cite"><div><div dir="ltr">Hi,<div><br></div><div>Is there an option to install expat includes in a different location? For now its installed in <prefix>/include. This seems to be a problem when using a latest expat version and by default ITK's expat is included. </div>




<div><br></div><div>Or if it is possible to use a system expat to make sure that both ITK and other libraries uses same expat (latest version).</div><div><br></div><div>best would be to change location <prefix>/include/expat. So that cmake can be used to remove item from list of include directories.</div>




<div><br></div><div>eg:</div><div>list(REMOVE_ITEM expat-includes itk-includes)<br></div><div><div><br></div>-- <br><div><font face="arial, helvetica, sans-serif">Regards,<br>   Rashad</font></div>
</div></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>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</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-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>


</blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font face="arial, helvetica, sans-serif">Regards,<br>   Rashad</font></div>
</div></div>
</blockquote></div><br></div></body></html>