[Ubuntu] MapServer 6.2 + ECW support

Even Rouault even.rouault at mines-paris.org
Mon Jan 20 04:12:59 PST 2014


Selon Marco Afonso <mafonso333 at gmail.com>:

You didn't mention which GDAL version you are trying to configure but from your
log, I guess it is a 1.9.X. And you seem to install the ECW SDK v5 which
requires GDAL 1.10. So either upgrade to 1.10 or downgrade the ECW SDK to 3.3


> Hello all,
>
> I'm doing a clean install of MapServer in Ubuntu 12.04 from the ubuntugis
> ppa and I need support for ECW.
>
> Just installed MapServer, GDAL, ecw plugin, and the latest ECW DSK (linux).
>
> When running the build script gdal-ecw-build I found that the script its
> not finding the *libNCSEcw.so* file where I've put it in the required
> directory.
>
> 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:
>
> if [ ! -f "$ECWSDK/include/NCSEcw/ECW/ECW.h" -o `grep 'ECWFILE'
> "$ECWSDK/include/NCSEcw/ECW/ECW.h" |wc -l` -eq 0 ]; then
>
>
>
> So here is what I got now:
>
> $ sudo gdal-ecw-build /usr/local/ecwjp2_sdk
> Extracting GDAL/ECW tarball
> Building GDAL/ECW plugin
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking for ranlib... ranlib
> checking for g++ -shared ... yes
> checking for gdal-config... /usr/bin/gdal-config
> using /usr/lib/gdalplugins/1.9 as GDAL shared library autoload directory
> checking for libNCSEcw.so or libecwj2... configure: error: not found in
> /usr/local/ecwjp2_sdk/lib or /usr/local/ecwjp2_sdk/bin.
>
>
>
> I've created a link of this file (
> */usr/local/ecwjp2_sdk/lib/x64/release/libNCSEcw.so*) to */usr/local/lib* and
> even to */usr/local/ecwjp2_sdk/lib*, then run ldconfig, but it fails
> again...
>
> Any ideas?
>
> --
> Best regards,
> Marco Afonso
>




More information about the Ubuntu mailing list