I can build the ECW/JP2ECW driver as a plugin (using 5.0 or 5.1 SDK) on Ubuntu 12.04 (GDAL 1.10) using the gdal-ecw-build script from from the ubuntugis-unstable libgdal-ecw package ( https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable).
I have also built the ECW/JP2ECW driver as a plugin (using 5.1 SDK) on Ubuntu 14.04 by copying the makefile/configure scripts from the 12.04 ubuntugis-unstable libgdal-ecw package to a vanilla GDAL 1.11 source tree (frmts/ecw), compiling and installing to /usr/lib/gdalplugins/1.11. On Ubuntu 14.04 the install looks ok when running gdal utilities: $ gdalinfo --version GDAL 1.11.0, released 2014/04/16 $ gdalinfo --formats|grep -i ecw ECW (rw+): ERDAS Compressed Wavelets (SDK 5.1) JP2ECW (rw+v): ERDAS JPEG2000 (SDK 5.1) However, the ECW and JP2ECW drivers do not work in python: $ python -c "from osgeo import gdal; print repr((gdal.GetDriverByName('ECW'),gdal.GetDriverByName('JP2ECW')))" ERROR 1: /usr/lib/gdalplugins/1.11/gdal_ECW_JP2ECW.so: undefined symbol: GDALRegisterMe ERROR 1: /usr/lib/gdalplugins/1.11/gdal_ECW_JP2ECW.so: undefined symbol: _ZTI22GDALJP2AbstractDataset (None, None) On Ubuntu 12.04 (with the plugin built using the gdal-ecw-build script and provided source package), different undefined symbol errors are reported when importing gdal in python. $ python -c "from osgeo import gdal; print repr((gdal.GetDriverByName('ECW'),gdal.GetDriverByName('JP2ECW')))" ERROR 1: /usr/lib/gdalplugins/1.10/gdal_ECW_JP2ECW.so: undefined symbol: _ZTI14GDALPamDataset ERROR 1: /usr/lib/gdalplugins/1.10/gdal_ECW_JP2ECW.so: undefined symbol: _ZTI14GDALPamDataset (None, None) I reported the issue with 12.04 to UbuntuGIS ( http://trac.osgeo.org/ubuntugis/ticket/34) last year, but there has been no resolution. I can always build gdal itself from source with python and ECW support, but I'd like to easily build ECW support as a plugin so I can just rely on my package manager to keep everything else up to date. Can anybody provide some guidance on how to compile the ECW/JP2ECW drivers as a plugin on Linux? Regards Luke
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev