<div dir="ltr">Hi,<div><br></div><div style>I finally could get a copy, and install, for libECW 3.3 following <a href="http://wiki.openstreetmap.org/wiki/ECW">http://wiki.openstreetmap.org/wiki/ECW</a></div><div style><br>
</div><div style>Now gdal supports ECW. Thank you anyway.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/20 Marco Afonso <span dir="ltr"><<a href="mailto:mafonso333@gmail.com" target="_blank">mafonso333@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello all,<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">I'm doing a clean install of MapServer in Ubuntu 12.04 from the ubuntugis ppa and I need support for ECW.</span></div>

<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Just installed MapServer, GDAL, ecw plugin, and the latest ECW DSK (linux).</font></div><div><font face="arial, sans-serif"><br></font></div>

<div><font face="arial, sans-serif">When running the build script gdal-ecw-build I found that the script its not finding the <b>libNCSEcw.so</b> file where I've put it in the required directory.</font></div><div>
<font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">It seems that the latest directory structure of ECW SDK has changed. I did change the script to find the ECW.h in this line:</font></div>

<div><font face="arial, sans-serif"><br></font></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="font-family:arial,sans-serif;font-size:13px">if [ ! -f "$ECWSDK/include/NCSEcw/ECW/</span><span style="font-family:arial,sans-serif;font-size:13px">ECW.h" -o `grep 'ECWFILE' "$ECWSDK/include/NCSEcw/ECW/</span><span style="font-family:arial,sans-serif;font-size:13px">ECW.h" |wc -l` -eq 0 ]; then</span></div>

</blockquote><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">So here is what I got now:</font></div>

<div><font face="arial, sans-serif"><br></font></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="font-family:arial,sans-serif;font-size:13px">$ sudo gdal-ecw-build /usr/local/ecwjp2_sdk</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">Extracting GDAL/ECW tarball</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Building GDAL/ECW plugin</span></div><div>
<span style="font-family:arial,sans-serif;font-size:13px">checking for gcc... gcc</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">checking for C compiler default output file name... a.out</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">checking whether the C compiler works... yes</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">checking whether we are cross compiling... no</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">checking for suffix of executables...</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">checking for suffix of object files... o</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">checking whether we are using the GNU C compiler... yes</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">checking whether gcc accepts -g... yes</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">checking for gcc option to accept ISO C89... none needed</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">checking for g++... g++</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">checking whether we are using the GNU C++ compiler... yes</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">checking whether g++ accepts -g... yes</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">checking for ranlib... ranlib</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">checking for g++ -shared ... yes</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">checking for gdal-config... /usr/bin/gdal-config</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">using /usr/lib/gdalplugins/1.9 as GDAL shared library autoload directory</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">checking for libNCSEcw.so or libecwj2... configure: error: not found in /usr/local/ecwjp2_sdk/lib or /usr/local/ecwjp2_sdk/bin.</span></div></blockquote>
<div><div><br></div><div><br></div><div><div><font face="arial, sans-serif">I've created a link of this file (</font><b>/usr/local/ecwjp2_sdk/lib/x64/release/libNCSEcw.so</b>)<span style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;font-size:14px;background-color:rgb(238,238,238);line-height:16px"> </span><font face="arial, sans-serif">to </font><span style="font-family:arial,sans-serif;font-size:13px"><b>/usr/local/lib</b></span><font face="arial, sans-serif"> and even to </font><span style="font-family:arial,sans-serif;font-size:13px"><b>/usr/local/ecwjp2_sdk/lib</b></span><font face="arial, sans-serif">, then run ldconfig, but it fails again...</font><br>

</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Any ideas?</div></div><span class="HOEnZb"><font color="#888888"><div style="font-family:arial,sans-serif;font-size:13px">
<br></div>-- <br>
<div dir="ltr">Best regards, <div>Marco Afonso</div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards, <div>Marco Afonso</div><div><a href="http://goo.gl/ZDtQjm" target="_blank">http://goo.gl/ZDtQjm</a><br></div><div><span></span><img src="https://dl.dropboxusercontent.com/u/17607469/qr.png"><br>
</div></div>
</div>