<div dir="ltr">Thanks guys, I got it to work from the 2.2 repo branch, which has the change on it. I could not get it to work with trunk.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 13, 2017 at 2:06 PM, Sean Gillies <span dir="ltr"><<a href="mailto:sean@mapbox.com" target="_blank">sean@mapbox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Matt,<div><br></div><div>I've been able to build GDAL with OpenJPEG 2.3.0 by using the changeset_40330.diff patch (from the GDAL Trac) and no args for --with-openjpeg:</div><div><span style="background-color:rgb(255,251,221);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap"><br></span></div><div><a href="https://github.com/sgillies/frs-wheel-builds/blob/master/Dockerfile.wheels#L105-L144" target="_blank">https://github.com/sgillies/<wbr>frs-wheel-builds/blob/master/<wbr>Dockerfile.wheels#L105-L144</a><br></div><div><br></div><div>These GDAL builds are in the rasterio 1.0a10 wheels on PyPI.</div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Oct 13, 2017 at 11:47 AM, Matt Hanson <span dir="ltr"><<a href="mailto:matt.a.hanson@gmail.com" target="_blank">matt.a.hanson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Even,<div><br></div><div>Great work with OpenJPEG! I'm trying to get GDAL trunk compiled with support for it, but I can't get configuration to find it properly. On an Amazon base linux image my simplified Dockerfile is like this:</div><div><br></div><div>```</div><div><div>RUN \</div><div> wget <a href="https://github.com/uclouvain/openjpeg/archive/v2.3.0.tar.gz" target="_blank">https://github.com/uclouvain/o<wbr>penjpeg/archive/v2.3.0.tar.gz</a>; \</div><div> tar xvf v2.3.0.tar.gz; \</div><div> cd openjpeg-2.3.0; mkdir build; cd build; \</div><div> cmake .. -DCMAKE_BUILT_TYPE=Release; \</div><div> make; make install; make clean; </div><div> #cd ../..; rm -rf openjpeg-* v2.3.0.tar.gz;</div><div><br></div><div>RUN \</div><div> git clone <a href="https://github.com/OSGeo/gdal.git" target="_blank">https://github.com/OSGeo/gdal.<wbr>git</a>; cd gdal/gdal; \<br></div><div> ./configure --with-openjpeg</div></div><div>```</div><div><br></div><div>Even though it appears that --with-openjpeg doesn't take any arguments, I tried anyway with:</div><div>--with-openjpeg=/usr/local</div><div>--with-openjpeg=yes</div><div>--with-openjpeg=/usr/local/inc<wbr>lude/openjpeg-2.3,/usr/local/<wbr>lib</div><div><br></div><div>I also tried with GDAL 2.2.2 and creating the symlink from /usr/local/include/openjpeg-2.<wbr>2 to /usr/local/include/openjpeg-2.<wbr>3</div><div><br></div><div>I've not been able to get configure to turn on openjpeg support.</div><div><br>Are there additional dependencies I'm missing, or is this a problem on trunk?</div><div><br></div><div>Thanks so much in advance!</div><div><br></div><div>Matthew Hanson</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-2499440199749183336h5">On Thu, Oct 5, 2017 at 9:49 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-2499440199749183336h5"><u></u>
<div style="font-family:'monospace';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Hi,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">I've just done changes in GDAL to be able to use the newly released openjpeg version: <a href="https://trac.osgeo.org/gdal/ticket/7074" target="_blank">https://trac.osgeo.org/gdal/ti<wbr>cket/7074</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">For trunk,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- for linux builds, autoconf now uses pkg-config to be able to support more easily the /usr/include/openjpeg-2.X path pattern</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- for windows build, your option OPENJPEG_CFLAGS option now must point directly to the the include/openjpeg-2.X path</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">For branches/2.2, I've just extended the previous painful pattern to handle openjpeg versions.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">(if you use GDAL 2.2.2 unmodified, you can just copy rename/symlink the include/openjpeg-2.3 to include/openjpeg-2.2, and that will build fine as well)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Even</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">---------- Forwarded Message ----------</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Subject: [OpenJPEG] OpenJPEG v2.3.0 is out: more speed and memory improvement</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Date: jeudi 5 octobre 2017, 02:42:41 CEST</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">From: Antonin - OpenJPEG <<a href="mailto:info@openjpeg.org" target="_blank">info@openjpeg.org</a>></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">To: <a href="mailto:openjpeg@googlegroups.com" target="_blank">openjpeg@googlegroups.com</a> <<a href="mailto:openjpeg@googlegroups.com" target="_blank">openjpeg@googlegroups.com</a>></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Good news everyone !</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">OpenJPEG 2.3.0 is released today:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="https://github.com/uclouvain/openjpeg/releases/tag/v2.3.0" target="_blank">https://github.com/uclouvain/o<wbr>penjpeg/releases/tag/v2.3.0</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">This new release finalizes the work made by Even Rouault and funded by several academic institutions and archival organizations to make OpenJPEG significantly faster and safer.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">In addition to what has been done in v2.2.0 (multithreading at decoding, speed optimizations, memory consumption reduction, etc, see <a href="http://www.openjpeg.org/2017/08/10/OpenJPEG-2.2.0-released" target="_blank">http://www.openjpeg.org/2017/0<wbr>8/10/OpenJPEG-2.2.0-released</a> for details), this release adds improvement to sub-tile decoding.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Now when you handle a huge single tile image and only wants to decode a small part of it, only the window of interest is actually processed: sounds quite natural but I can ensure it wasn't that easy to implement. This leads to drastic speed and memory improvements as they now only depend on the size of the window and not on the original image size. This release also adds the ability to decode only a subset of components.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Overall, if we compare performances of OpenJPEG before all Even's optimizations (v2.1.2) and the ones reached by the new v2.3.0 release, we observe a 55-60% speed improvement on a single thread whole image decoding (even more on big images like 10000x10000). Memory consumption is also drastically reduced on mega-image decoding: for example, for a full decoding of a single tile 8000x12000 image, it is reduced from 2 to 1.3 GB RAM. But more importantly, OpenJPEG is now a workable solution for workflows involving partial decoding.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Benchmarks are hard to compare as there are many variables that can influence the results: so if you are an OpenJPEG user, please download and try this new release within your workflow ... And share your feedback, that would be highly appreciated.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">As indicated above and described in a previous post (<a href="https://groups.google.com/d/msg/openjpeg/CltNQpbbwm4/jajpDKq0AAAJ" target="_blank">https://groups.google.com/d/m<wbr>sg/openjpeg/CltNQpbbwm4/jajpDK<wbr>q0AAAJ</a>), all this has been made possible thanks to a funding from academic institutions and archival organizations, namely:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- Wellcome Library</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- Stanford University</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- Nationale Bibliotheek van Nederland (KBNL)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- University of Michigan</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- University of California, Los Angeles (UCLA)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">… And logistic support from the International Image Interoperability Framework (IIIF), the Council on Library and Information Resources (CLIR), intoPIX, and of course the Image and Signal Processing Group (ISPGroup) from University of Louvain (UCL, Belgium) hosting the OpenJPEG project. Thanks to all of them !</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Many thanks also to Even Rouault, the developper who actually implemented these improvements, and of course to all contributors having suggested fixes or enhancements.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Enjoy,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Antonin</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">More info:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">News: <a href="https://github.com/uclouvain/openjpeg/blob/v2.2.0/NEWS.md" target="_blank">https://github.com/uclouvain/o<wbr>penjpeg/blob/v2.2.0/NEWS.md</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Changelog: <a href="https://github.com/uclouvain/openjpeg/blob/v2.2.0/CHANGELOG.md" target="_blank">https://github.com/uclouvain/o<wbr>penjpeg/blob/v2.2.0/CHANGELOG.<wbr>md</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Full Changelog: <a href="https://github.com/uclouvain/openjpeg/compare/v2.1.2...v2.2.0" target="_blank">https://github.com/uclouvain/o<wbr>penjpeg/compare/v2.1.2...v2.2.<wbr>0</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">You are subscribed to the mailing-list of the OpenJPEG project (<a href="http://www.openjpeg.org" target="_blank">www.openjpeg.org</a>)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">To post: email to <a href="mailto:openjpeg@googlegroups.com" target="_blank">openjpeg@googlegroups.com</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">To unsubscribe: email to <a href="mailto:openjpeg%2Bunsubscribe@googlegroups.com" target="_blank">openjpeg+unsubscribe@googlegro<wbr>ups.com</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">For more options: visit <a href="http://groups.google.com/group/openjpeg" target="_blank">http://groups.google.com/group<wbr>/openjpeg</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">OpenJPEG is mainly supported by : </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">* UCL Image and Signal Processing Group (<a href="http://sites.uclouvain.be/ispgroup" target="_blank">http://sites.uclouvain.be/isp<wbr>group</a>) </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">* IntoPIX (<a href="http://www.intopix.com" target="_blank">www.intopix.com</a>)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">------------------------------<wbr>-----------</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div><br></div></div>______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/gdal-dev</a><br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_-2499440199749183336gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Sean Gillies</div></div>
</font></span></div>
</blockquote></div><br></div>