<p>Hi Cesar et al, <br></p>
<div class="gmail_quote">El 26 de mayo de 2011 16:36, Cèsar Ordiñana <span dir="ltr">&lt;<a href="mailto:cordinyana@gvsig.com" target="_blank">cordinyana@gvsig.com</a>&gt;</span> escribió:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">



  
    
  
  <div bgcolor="#ffffff" text="#000000">
    El 26/05/11 14:42, Jordi Torres escribió:
    <div><blockquote type="cite"><br>
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
          <div> Just for curiosity, why is needed that approach in
            MacOSX? Is there any problems in the gvSIG JNI libraries?<br>
            <br>
          </div>
        </blockquote>
        <div>The answer is that we do not have the binaires necessaries
          to execute the jniCall. they are:<br>
          <br>
          libNCSEcw.so     libNCSUtil.so libNCSEcwC.so libNCScnet.so<br>
          <br>
          As far as I know they are propietary, and they never gave us
          the binaries compiled for Mac O.S. at least for OSX series. <br>
        </div>
      </div>
    </blockquote>
    <br></div>
    Oh, I though gdal was using those same libraries to be able to open
    ecw files. Do you know if gdal is supporting that format by itself?<br><div><br><br></div></div></blockquote><div><br>Ok, we walked this path time ago.  So... Here we go!<br><br>
The first action we took was to register us and download ecw sdk form erdas site. Once we have the binaries we compiled against gvSIG jni-libraries. No problem during compilation arised, but unfortunately it did not work. After a week digging in the problem we didn&#39;t manage to get a solution. <br>

<br>So the next step was to do a workaround. We downloaded a gdal compiled version from kyngchaos with ecw and mrSid plugins. We were loading ecw and mrSID files through Gdal after changing a few lines in libRaster. But we found another problem, the compilation of Kyngchaos was compiled against SDK 10.6 of MacOS (Snow Leopard). As you may know MacOS dynamic libraries support universal format, so you can compile for i386,x86_64 and ppc machines. But if you don&#39;t compile against the right SDK the abi could change and finally it could not work in O.S with different SDK&#39;s.  That was the point. <br>

<br>The next step we did was to compile GDAL ourselves with ecw and mrsid support, using documentation from gdal and from kyngchaos. However there exists known problems in ecw plugin, it is not able to load layers bigger than 500 MB. <br>

<br>Moreover we still cannot execute any gvSIG jni-library in full 64 bit mode. We guessed this problem would be addressed for gvSIG 2.0, and we had spent many time trying to fix it, so our decision was to hack some lines in libRaster. <br>

<br>This is the full story.     <br><br>By the way, I have to step down from this working group, at least as the main collaborator. Some matters need my attention in my private life. I will try to collaborate in the future.   <br>

 </div>Cheers. <br></div><br clear="all"><br>-- <br>Jordi Torres Fabra<br><br>gvSIG 3D blog<br><a href="http://gvsig3d.blogspot.com" target="_blank">http://gvsig3d.blogspot.com</a><br>Instituto de Automática e Informática Industrial <br>

<a href="http://www.ai2.upv.es" target="_blank">http://www.ai2.upv.es</a><br>