<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 style><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 style>
<font face="arial, sans-serif"><br></font></div><div style><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 style><font face="arial, sans-serif"><br></font></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div style><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 style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">So here is what I got now:</font></div>
<div style><font face="arial, sans-serif"><br></font></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div style><span style="font-family:arial,sans-serif;font-size:13px">$ sudo gdal-ecw-build /usr/local/ecwjp2_sdk</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">Extracting GDAL/ECW tarball</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Building GDAL/ECW plugin</span></div><div style>
<span style="font-family:arial,sans-serif;font-size:13px">checking for gcc... gcc</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">checking for C compiler default output file name... a.out</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">checking whether the C compiler works... yes</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">checking whether we are cross compiling... no</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">checking for suffix of executables...</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">checking for suffix of object files... o</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">checking whether we are using the GNU C compiler... yes</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">checking whether gcc accepts -g... yes</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">checking for gcc option to accept ISO C89... none needed</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">checking for g++... g++</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">checking whether we are using the GNU C++ compiler... yes</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">checking whether g++ accepts -g... yes</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">checking for ranlib... ranlib</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">checking for g++ -shared ... yes</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">checking for gdal-config... /usr/bin/gdal-config</span></div><div style><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 style><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><div style="font-family:arial,sans-serif;font-size:13px"><br></div>-- <br>
<div dir="ltr">Best regards, <div>Marco Afonso</div></div>
</div></div>