<div dir="ltr">Hi Markus,<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 19, 2014 at 8:06 PM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</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 dir="ltr">On Wed, Nov 19, 2014 at 7:46 PM, Rashad M <<a href="mailto:mohammedrashadkm@gmail.com" target="_blank">mohammedrashadkm@gmail.com</a>> wrote:<br>...<span class=""><br>> I want ITK toolkit - <a href="http://pkgs.fedoraproject.org/cgit/InsightToolkit.git/" target="_blank">http://pkgs.fedoraproject.org/cgit/InsightToolkit.git/</a><br><br></span>FWIW, below some related notes as a start. I tried to compile OTB on a ScientificLinux 6.4 system.<br><br>best,<br>Markus<br><br>----------------------------<br>OTB INSTALLATION ON CLUSTER WITH SCIENTIFIC LINUX 6.4<div><br></div><div>(incomplete)<br><br>Requirements:<br><a href="http://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html#x14-210002.2" target="_blank">http://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html#x14-210002.2</a><br><br>1) ITK <br><br>Sub-Requirements:<br>-vxl<br> - Error: No Package found for dcmtk-devel<br>   <a href="https://admin.fedoraproject.org/pkgdb/package/dcmtk/" target="_blank">https://admin.fedoraproject.org/pkgdb/package/dcmtk/</a><br>     <a href="http://koji.fedoraproject.org/koji/packageinfo?packageID=11881" target="_blank">http://koji.fedoraproject.org/koji/packageinfo?packageID=11881</a><br>     --> compiled from SRPM, ok (dcmtk-3.6.0-18.el6.x86_64.rpm)<br><br> - Error: No Package found for expatpp-devel<br>   <a href="https://admin.fedoraproject.org/pkgdb/package/expatpp/" target="_blank">https://admin.fedoraproject.org/pkgdb/package/expatpp/</a><br>     <a href="http://koji.fedoraproject.org/koji/packageinfo?packageID=14948" target="_blank">http://koji.fedoraproject.org/koji/packageinfo?packageID=14948</a><br>     --> compiled from SRPM, ok (expatpp-0-5.20121019gitd8c1bf8.el6.x86_64.rpm)<br><br> - Error: No Package found for klt-devel<br>   <a href="https://apps.fedoraproject.org/packages/klt-devel/updates" target="_blank">https://apps.fedoraproject.org/packages/klt-devel/updates</a><br>     <a href="http://koji.fedoraproject.org/koji/buildinfo?buildID=559585" target="_blank">http://koji.fedoraproject.org/koji/buildinfo?buildID=559585</a><br>     --> compiled from SRPM, ok (klt-1.3.4-10.el6.x86_64.rpm)<br><br> - Error: No Package found for rply-devel<br>   <a href="https://admin.fedoraproject.org/pkgdb/package/rply/" target="_blank">https://admin.fedoraproject.org/pkgdb/package/rply/</a><br>    <a href="http://koji.fedoraproject.org/koji/packageinfo?packageID=10055" target="_blank">http://koji.fedoraproject.org/koji/packageinfo?packageID=10055</a><br>     --> compiled from SRPM, ok (rply-1.1.2-4.el6.x86_64.rpm)<br><br>  # install all from /root/rpmbuild/RPMS/x86_64/<br>   yum install dcmtk-devel-3.6.0-18.el6.x86_64.rpm expatpp-devel-0-5.20121019gitd8c1bf8.el6.x86_64.rpm \<br>        klt-devel-1.3.4-10.el6.x86_64.rpm rply-devel-1.1.2-4.el6.x86_64.rpm <br><br><br>Sub-Requirement: gdcm<br>  yum install libuuid-devel mesa-libOSMesa-devel openjpeg-devel python3-devel<br> - gdcm<br>   <a href="https://admin.fedoraproject.org/pkgdb/package/gdcm/" target="_blank">https://admin.fedoraproject.org/pkgdb/package/gdcm/</a><br>    <a href="http://koji.fedoraproject.org/koji/buildinfo?buildID=486393" target="_blank">http://koji.fedoraproject.org/koji/buildinfo?buildID=486393</a><br>   ---> gdcm-2.2.6-2.fc20.src.rpm  (don't use more recent as it now want python3!)<br><br>  yum install  libuuid-devel mesa-libOSMesa-devel openjpeg-devel<br><br>  Now modify the SPEC file to enforce python2 usage:<br><br>[root@giscluster SPECS]# diff -u gdcm.spec.orig gdcm.spec<br>--- gdcm.spec.orig 2014-08-28 17:22:14.228689843 +0200<br>+++ gdcm.spec 2014-08-28 17:21:25.939855925 +0200<br>@@ -139,7 +139,8 @@<br>  -DGDCM_USE_SYSTEM_LJPEG=OFF \<br>  -DGDCM_USE_SYSTEM_OPENSSL=ON \<br>  -DGDCM_USE_JPEGLS=ON \<br>- -DGDCM_USE_SYSTEM_POPPLER=OFF<br>+ -DGDCM_USE_SYSTEM_POPPLER=OFF \<br>+        -DPYTHON_VERSION_MAJOR=2<br> <br>  rpmbuild -ba /root/rpmbuild/SPECS/gdcm.spec<br><br>  yum install /root/rpmbuild/RPMS/x86_64/gdcm-2.2.6-2.el6.x86_64.rpm /root/rpmbuild/RPMS/x86_64/gdcm-devel-2.2.6-2.el6.x86_64.rpm /root/rpmbuild/RPMS/x86_64/gdcm-python-2.2.6-2.el6.x86_64.rpm<br><br><br>Sub-Requirement: VXL:<br><br>  <a href="https://admin.fedoraproject.org/pkgdb/package/vxl/" target="_blank">https://admin.fedoraproject.org/pkgdb/package/vxl/</a><br>    <a href="http://koji.fedoraproject.org/koji/buildinfo?buildID=570469" target="_blank">http://koji.fedoraproject.org/koji/buildinfo?buildID=570469</a><br><br> rpmbuild -ba /root/rpmbuild/SPECS/vxl.spec        <br><br><br> yum install Coin2-devel freeglut-devel libdc1394-devel libgeotiff-devel minizip-devel SIMVoleon-devel shapelib-devel texi2html xerces-c-devel<br> yum install /root/rpmbuild/RPMS/x86_64/vxl-1.17.0-15.el6.x86_64.rpm /root/rpmbuild/RPMS/x86_64/vxl-devel-1.17.0-15.el6.x86_64.rpm<br><br>=====================<br><br><a href="http://koji.fedoraproject.org/koji/buildinfo?buildID=518307" target="_blank">http://koji.fedoraproject.org/koji/buildinfo?buildID=518307</a><br>--> download SRPM<br><br><a href="http://itk.org/ITK/resources/software.html" target="_blank">http://itk.org/ITK/resources/software.html</a><br>--> download InsightToolkit-4.5.2.tar.xz (hosted at Sourceforge)<br>    --> merge both the old SPEC with the new InsightToolkit-xxx.tar.gz<br><br>rpmbuild -ba InsightToolkit.spec<br>yum install gdcm-devel qtwebkit-devel vtk-devel<br></div><div><br></div><div>(not continued so far due to lack of time)</div></div>
</blockquote></div><div class="gmail_extra"><br></div>oh! this is not easy. Even though external package is the good option, with OTB there is an alternative:</div><div class="gmail_extra">use internal ITK with OTB</div><div class="gmail_extra"><br></div><div class="gmail_extra">you can control it via cmake</div><div class="gmail_extra"><br></div><div class="gmail_extra">cmake -DOTB_USE_EXTERNAL_ITK=OFF</div><div class="gmail_extra"><br></div><div class="gmail_extra">This will use itk from OTB-source/Utilities/ITK<br><br clear="all"><div>similar thing you can do with OSSIM and libkml</div><div><br></div><div>-DOTB_USE_EXTERNAL_OSSIM</div><div>-DOTB_USE_EXTERNAL_LIBKML<br></div><div><br>-- </div><div class="gmail_signature"><div><font face="arial, helvetica, sans-serif">Regards,<br>   Rashad</font></div></div>
</div></div>