<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div>I have previously built the ECW/JP2ECW drivers 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.<br>
<br>Now that I have upgraded my PC to Ubuntu 14.04, I built the ECW/JP2ECW drivers as a plugin (using 5.1 SDK) by usinging the makefile/configure scripts from the 12.04
 ubuntugis-unstable libgdal-ecw package against a vanilla GDAL 1.11 source 
tree (frmts/ecw), compiling and installing to /usr/lib/gdalplugins/1.11.<br>
</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">On
 Ubuntu 12.04 (with the plugin built using the gdal-ecw-build script and
 provided source package), the install looks ok when running gdal utilities, however the following undefined symbol errors are 
reported when importing gdal in python and the ECW/JP2ECW drivers are not available.<br></div><div>
<br>$ gdalinfo --formats|grep -i ecw<br>  ECW (rw+): ERDAS Compressed Wavelets (SDK 5.0)<br>
  JP2ECW (rw+v): ERDAS JPEG2000 (SDK 5.0)<br><br>$ python -c "from osgeo import gdal; print repr((gdal.GetDriverByName('<wbr>ECW'),gdal.GetDriverByName('<wbr>JP2ECW')))"<br>ERROR 1: /usr/lib/gdalplugins/1.10/<wbr>gdal_ECW_JP2ECW.so: undefined symbol: _ZTI14GDALPamDataset<br>
ERROR 1: /usr/lib/gdalplugins/1.10/<wbr>gdal_ECW_JP2ECW.so: undefined symbol: _ZTI14GDALPamDataset<br>(None, None)<br><br>On Ubuntu 14.04 the install looks ok when running gdal utilities, though the ECW and JP2ECW drivers also do not work in python and there are different undefined symbol errors:<br>$ gdalinfo --formats|grep -i ecw<br>  ECW (rw+): ERDAS Compressed Wavelets (SDK 5.1)<br>
  JP2ECW (rw+v): ERDAS JPEG2000 (SDK 5.1)<br><br>$ python -c "from osgeo import gdal; print repr((gdal.GetDriverByName('<div><wbr>ECW'),gdal.GetDriverByName('<wbr>JP2ECW')))"<br>
ERROR 1: /usr/lib/gdalplugins/1.11/<wbr>gdal_ECW_JP2ECW.so: undefined symbol: GDALRegisterMe<br>ERROR 1: /usr/lib/gdalplugins/1.11/<wbr>gdal_ECW_JP2ECW.so: undefined symbol: _ZTI22GDALJP2AbstractDataset<br>(None, None)<br></div><br>I reported the issue with 12.04 to UbuntuGIS (<a href="http://trac.osgeo.org/ubuntugis/ticket/34" target="_blank">http://trac.osgeo.org/<wbr>ubuntugis/ticket/34</a>) last year, but there has been no resolution. However, this may have been missed as this ticket wasn't specifically about python, just about getting the 5+ SDK working with the libgdal-ecw package.<br>
<br>I can build gdal itself from source with ECW 
support without any problems with the drivers in python, 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.<br><br>Can anybody provide some guidance on how to compile the ECW/JP2ECW drivers as a plugin and get them working in python on Linux?<br><br><br>Regards<br>Luke<br></div></div></body></html>