As I explained to Jeremy in an e-mail, I made those changes years ago. I don’t remember the exact details. I do know that those are all specific to OS X, and specifically to OS X and the Xcode toolchain circa 2011 (maybe?). Things are much different today. I must have needed those changes to make it work on the Mac. I did use this code to process a fair amount of JPEG2000-encoded NITF data. It seemed to work fine at the time.
However, I never applied these changes to any production Linux builds. They were only for the Mac and I only used the Mac for development. I would not recommend using this patch for any real data. As soon as OpenJPEG became viable, I switched to that. Plus that ECW code has questionable licensing - real mess. Unfortunately, Jeremy has actual ECW files. I never had any of those. However, you could use this patch to get a functional GDAL build with ECW and run tests. Then try to back out some of the more mysterious changes. That is always easier to do when you have it running and testable. John Daniel Etresoft, Inc. On Jan 5, 2018, at 8:12 AM, Even Rouault <[email protected]<mailto:[email protected]>> wrote: Hi Jeremy, > https://gist.github.com/palmerj/54fa389c4e60fa7b9f1d5ceea7ac3359 Note that https://trac.osgeo.org/gdal/wiki/ECW references https://trac.osgeo.org/gdal/attachment/wiki/ECW/libecwj2-3.3.patch which is the cumlated patch of a number of patches that have been collected over the years (for Linux builds) I see that your gist has some of the fixes of libecwj2-3.3.patch, and a lot more (but some are not so obvious without digging more in the code) This ECW situation is such a mess. Sigh Even -- Spatialys - Geospatial professional services http://www.spatialys.com<http://www.spatialys.com/> _______________________________________________ gdal-dev mailing list [email protected]<mailto:[email protected]> https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
