Skip to content

Instantly share code, notes, and snippets.

@cquest
Last active February 20, 2019 20:29
Show Gist options
  • Save cquest/a40c82e0f95aef22f9c1b1289a6b6fcf to your computer and use it in GitHub Desktop.
Save cquest/a40c82e0f95aef22f9c1b1289a6b6fcf to your computer and use it in GitHub Desktop.
HOWTO build gdal 2 with ECW 5.3 (tested with gdal 2.2 and 2.3 on ubuntu 16.04)
unzip erdas-ecw-sdk-5.3.0-linux.zip
chmod +x ERDAS_ECWJP2_SDK-5.3.0.bin
./ERDAS_ECWJP2_SDK-5.3.0.bin
sudo cp -r ~/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.3.0/Desktop_Read-Only /usr/local/hexagon
ldconfig /usr/local/hexagon
cd gdal
CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" ./configure --with-ecw=/usr/local/hexagon --without-jpeg12
make clean
make -j
make install
@1Map
Copy link

1Map commented Aug 10, 2018

+1

@1papaya
Copy link

1papaya commented Sep 23, 2018

Hey all, with some help of this gist plus searching heaps around the internet for clues, here's a full script to compile GDAL with ECW support on Ubuntu 18.04 (but should work for 16.04 as well)

https://gist.github.com/1papaya/568c4580b1909071696c1cb119101823

@eduardojsilvajr
Copy link

What do u mean with cd gdal???
Do u mean cd /usr/share/gdal ????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment