Hi Qing,<br><br>Well, the &quot;binary&quot; form of ITK not a real solution either,<br>since most of ITK is templated code, the libraries contain<br>a very small portion of the total toolkit.<br><br>If you are distributing your application and want others
<br>to be able to rebuild it, then they should have access<br>to the source code of ITK. Of course, only if they are<br>trying to rebuild it.<br><br>If your users are only going to run your application, <br>then the simplest way to proceed is to compile ITK
<br>for Statics libraries, and just distribute your executable.<br><br>You may also want to take a look at CPack (from CMake)<br>which is the tool intended for packaging code for distribution.<br><br><br>&nbsp;&nbsp;&nbsp; Regards,<br><br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luis<br><br><br>--------------------------------<br><div><span class="gmail_quote">On 8/6/07, <b class="gmail_sendername">qing xu</b> &lt;<a href="mailto:qingxu8@hotmail.com">qingxu8@hotmail.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;">Hi Luis,<br><br>Thank you for your suggestion.You are right, it seems that there is little
<br>difference between incorporting part of or all of the itk source code. Maybe<br>I will just keep using the binary form of itk.<br>Thanks a lot.<br><br>Qing<br><br><br><br>&gt;From: &quot;Luis Ibanez&quot; &lt;<a href="mailto:luis.ibanez@kitware.com">
luis.ibanez@kitware.com</a>&gt;<br>&gt;To: &quot;qing xu&quot; &lt;<a href="mailto:qingxu8@hotmail.com">qingxu8@hotmail.com</a>&gt;<br>&gt;CC: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>&gt;Subject: Re: [Insight-users] redistribution questions
<br>&gt;Date: Mon, 6 Aug 2007 13:28:40 -0400<br>&gt;<br>&gt;Hi Qing,<br>&gt;<br>&gt;Yes, I&#39;m suggesting that you should include all of ITK with your project.<br>&gt;<br>&gt;It will be rather difficult to extract only the classes that you are using,
<br>&gt;although it is not impossible.<br>&gt;<br>&gt;You should ask yourself, what is the purpose of adding to your project<br>&gt;the code from ITK ?<br>&gt;<br>&gt;Why not just say that you distribute the code, and that it should be
<br>&gt;build using ITK version X.Y. ?<br>&gt;<br>&gt;Keep in mind that we make ITK releases every three monts,<br>&gt;so, by extracting code from ITK you will also face the challenge<br>&gt;of updating your version of the code to new releases of ITK.
<br>&gt;<br>&gt;This may o may not be a problem, depending on who are<br>&gt;the recipients of the code that you are delivering, and how<br>&gt;you are going to maintain that code for the next five to<br>&gt;ten years.<br>
&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Regards,<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luis<br>&gt;<br>&gt;<br>&gt;---------------------------------------------------------------------<br>&gt;On 8/6/07, qing xu &lt;<a href="mailto:qingxu8@hotmail.com">
qingxu8@hotmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; Hi Luis,<br>&gt; &gt;<br>&gt; &gt; Thanks a lot for your reply.<br>&gt; &gt;<br>&gt; &gt; I use the 3d versor rigid registration part of ITK, and now I want to<br>
&gt; &gt; incorporate the source code of ITK to my project. So, first, I have to<br>&gt; &gt; figure out what files in ITK are related to the functions I am using.<br>&gt;What<br>&gt; &gt; I<br>&gt; &gt; am doing now is to check the header files to see what must be included
<br>&gt;to<br>&gt; &gt; implement the registration.&nbsp;&nbsp;But it seems that there are so many files<br>&gt; &gt; related to the registraiton part, is there a easy way to do that?&nbsp;&nbsp;Are<br>&gt;you<br>&gt; &gt; suggesting that I should include all the ITK source codes to my project?
<br>&gt; &gt; Thanks.<br>&gt; &gt;<br>&gt; &gt; Qing<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; &gt;From: &quot;Luis Ibanez&quot; &lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;<br>&gt; &gt; &gt;To: &quot;qing xu&quot; &lt;
<a href="mailto:qingxu8@hotmail.com">qingxu8@hotmail.com</a>&gt;<br>&gt; &gt; &gt;CC: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>&gt; &gt; &gt;Subject: Re: [Insight-users] redistribution questions
<br>&gt; &gt; &gt;Date: Mon, 6 Aug 2007 12:12:42 -0400<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;Hi Qing,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;Yes, you are allowed (and encouraged)<br>&gt; &gt; &gt;to redistribute ITK&#39;s source code.
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;Why are you finding difficult to pack all the code ?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;You can just take the tar or .zip file corresponding<br>&gt; &gt; &gt;to the ITK release that you are using.
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;The tar/zip files are available at:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.itk.org/HTML/Download.php">http://www.itk.org/HTML/Download.php</a><br>&gt; &gt; &gt;<br>
&gt; &gt; &gt;You could also just use the cvs export command<br>&gt; &gt; &gt;and if you are using a particular CVS version of ITK.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; Regards,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luis<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;===========================<br>&gt; &gt; &gt;On 8/6/07, qing xu &lt;<a href="mailto:qingxu8@hotmail.com">qingxu8@hotmail.com</a>&gt; wrote:
<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Hi,<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; I am currently considering incorporating itk source code to my<br>&gt; &gt; project.<br>&gt; &gt; &gt;I<br>&gt; &gt; &gt; &gt; read the copyright notice and seems that it allows me to
<br>&gt;redistribute<br>&gt; &gt; in<br>&gt; &gt; &gt; &gt; source code form. But it seems not trivial to find all the related<br>&gt; &gt; &gt;source<br>&gt; &gt; &gt; &gt; code files. Anyone has done the similar thing? Any suggestion is
<br>&gt; &gt; &gt;welcome.<br>&gt; &gt; &gt; &gt; Thanks.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Qing<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; _______________________________________________
<br>&gt; &gt; &gt; &gt; Insight-users mailing list<br>&gt; &gt; &gt; &gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; &gt; &gt; &gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt; &gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _________________________________________________________________<br>&gt; &gt; Tease your brain--play Clink! Win cool prizes!
<br>&gt; &gt; <a href="http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2">http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2</a><br>&gt; &gt;<br>&gt; &gt;<br><br>_________________________________________________________________
<br>Learn.Laugh.Share. Reallivemoms is right place!<br><a href="http://www.reallivemoms.com?ocid=TXT_TAGHM&amp;loc=us">http://www.reallivemoms.com?ocid=TXT_TAGHM&amp;loc=us</a><br><br></blockquote></div><br>