On 2/1/21 8:24 PM, Jeff McKenna wrote:
> Hi Kevin,
> 
> Some quick thoughts for your case:
> 
> - you can paste your large commands and code at https://pastebin.com/ and 
> then share that link with this mailing list discussion in your message (for 
> images, similar with https://pasteboard.co/ )
> 
> - the best source of build help is the GDAL "BuildHints" page 
> (https://trac.osgeo.org/gdal/wiki/BuildHints) and specifically for ECW: 
> https://trac.osgeo.org/gdal/wiki/ECW Although the hints can be old and for 
> various versions, I find following those pages a "gold mine" of information.

Yep, either jump through this hoops (given you are not a developer: it IS 
possible: I compiled GDAL 3.1.4 with ecw recently on Debian testing).

OR you ask a Windooz friend to copy your ecw's to geotiff once (using osgeo4w 
of fme if available) and throw the ecw out of the window(s).

Regards,

Richard Duivenvoorde

PS if you want to try, these are my notes, pick and replace:

# ecw lib talks about gdal 3.1... so
cd /home/richard/git/gdal/gdal
git checkout release/3.1
# ecw lib downloaded (shows up in ~/hexagon) moved to:
/home/richard/bin/ecw5.5.0
# in prefix pah: /home/richard/bin/gdal
./configure --prefix=/home/richard/bin/gdal 
--with-ecw=/home/richard/bin/ecw5.5.0   # so header will be found
# this one is needed so the linker (ld) can find the ecw so's:
export 
LD_LIBRARY_PATH=/home/richard/bin/ecw5.5.0/lib/x64/release:$LD_LIBRARY_PATH
# hitting issue with linker: https://github.com/OSGeo/gdal/issues/2657
# you have to rename the x64 dir and symlink the cpp11abi/x64 dir
make -j8
make install
export PATH=/home/richard/bin/gdal/bin:$PATH
export 
LD_LIBRARY_PATH=/home/richard/bin/gdal/lib:/home/richard/bin/ecw5.5.0/lib/x64/release:$LD_LIBRARY_PATH
export GDAL_DATA=/home/richard/bin/gdal/share/gdal
gdalinfo --version
# GDAL 3.1.4, released 2020/10/20  YES !!
gdalinfo --formats|grep ECW
ECW -raster- (rw+): ERDAS Compressed Wavelets (SDK 5.5)
JP2ECW -raster,vector- (rw+v): ERDAS JPEG2000 (SDK 5.5)

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to