<div>Brad;</div><div><br></div><div>The enclosed you please find compiling errors I encountered when building ITK3.20 on Ubuntu 12.04. make file is generated using cmake 2.8, and Ubuntu12.04 was upgraded from ubuntu10.04.</div>
<div><br></div><div>I very appreciate your kind help.</div><div><br></div><div>Sam</div><div><br></div><div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx: In function ‘bool MET_StringToWordArray(const char*, int*, char***)’:</div>
<div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:800:3: error: ‘ptrdiff_t’ was not declared in this scope</div>
<div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:800:3: note: suggested alternatives:</div><div>/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’</div>
<div>/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’</div><div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:800:13: error: expected ‘;’ before ‘l’</div>
<div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:802:13: error: expected ‘;’ before ‘p’</div><div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:803:9: error: ‘p’ was not declared in this scope</div>

<div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:803:11: error: ‘l’ was not declared in this scope</div><div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:809:13: error: expected ‘;’ before ‘pp’</div>

<div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:811:9: error: ‘pp’ was not declared in this scope</div><div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:811:12: error: ‘l’ was not declared in this scope</div>

<div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:824:3: error: ‘pp’ was not declared in this scope</div><div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:824:6: error: ‘l’ was not declared in this scope</div>

<div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:840:13: error: expected ‘;’ before ‘i’</div><div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:841:7: error: ‘i’ was not declared in this scope</div>

<div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:843:8: error: ‘p’ was not declared in this scope</div><div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:849:11: error: ‘p’ was not declared in this scope</div>

<div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:853:5: error: ‘j’ was not declared in this scope</div><div>/itk/InsightToolkit-3.20.0/Utilities/MetaIO/metaUtils.cxx:854:11: error: ‘p’ was not declared in this scope</div>

<div>make[2]: *** [Utilities/MetaIO/CMakeFiles/ITKMetaIO.dir/metaUtils.o] Error 1</div><div>make[1]: *** [Utilities/MetaIO/CMakeFiles/ITKMetaIO.dir/all] Error 2</div><div>make: *** [all] Error 2</div><div><br></div><br><div class="gmail_quote">

On Thu, Aug 30, 2012 at 2:51 PM, Bradley Lowekamp <span dir="ltr">&lt;<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">What kind of problem are you running into? Do you have the cmake or compiler error message that you are getting? What Cmake and compiler are you trying to use?<div><br></div><div>I know I have built Silicer4 on Ubuntu 12.04, and that used ITK 3.20. So it&#39;s likely an easy fix. We just need to know more about the problem you are encountering.</div>

<div><br></div><div>Thanks,</div><div>Brad </div><div><br><div><div><div><div>On Aug 30, 2012, at 2:39 PM, Sam Sun wrote:</div><br></div></div><blockquote type="cite"><div><div><div class="gmail_quote">
Hello;<div><br></div><div>I worked on ITK3.20 for a while on Ubuntu 10.04. it worked well. </div><div><br></div><div>Unfortunately it can&#39;t be built successfully on Ubuntu12.04. I understand we should use latest stable version, but opensource IGSTK 5.0 needs ITK 3.20. could anybody help this and teach me how to fix ITK3.20 on Ubuntu12.04? </div>



<div><br></div><div>your kind help is greatly appreciated. </div><span><font color="#888888"><div><br></div><div>Sam</div><div><br></div>
</font></span></div><br></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://www.kitware.com/products/protraining.php" target="_blank">http://www.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-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>

</blockquote></div><br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">

<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font face="Helvetica" size="3" style="font:normal normal normal 12px/normal Helvetica">========================================================</font></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font face="Helvetica" size="3" style="font:normal normal normal 12px/normal Helvetica">Bradley Lowekamp<span> </span><span> </span></font></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<font face="Helvetica" size="3" style="font:normal normal normal 12px/normal Helvetica">Medical Science and Computing for</font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:normal normal normal 12px/normal Helvetica">Office of High Performance Computing and Communications</font></p>

<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:normal normal normal 12px/normal Helvetica">National Library of Medicine<span> </span></font></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font face="Helvetica" size="3" style="font:normal normal normal 12px/normal Helvetica"><a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a></font></p><br></span></div></span></span><br>
</div>
<br></div></div></blockquote></div><br>