<div dir="auto"><div dir="ltr"><div>Ok I finally managed to get GDAL 3.6.0 compiled with JP2KAK driver v8.2. Indeed my Kakadu complation was incomplete.</div><div>For the record, in addition to the following instructions <a href="https://trac.osgeo.org/gdal/wiki/JP2KAK" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://trac.osgeo.org/gdal/wiki/JP2KAK</a> I had to :</div><div>- install java-openjdk-devel</div><div>- set JAVA_HOME environment variable</div><div>- After building subtree
<strong>coresys</strong>
&
<strong>apps</strong>, subtree
<strong>managed</strong> must be built (cd managed/make; make -f Makefile-Linux-x86-64-gcc)</div><div dir="auto">Then I get my libkdu_a82R.so generated for the GDAL -DKDU_AUX_LIBRARY cmake option.</div><div dir="auto">Thanks!</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 24 Nov 2022 at 14:42, Even Rouault <<a href="mailto:even.rouault@spatialys.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Refer to Kakadu docs & support for that. There's definitely a
way of generating it, but Kakadu build system is .... ahem ...
"particular"<br>
</p>
<div>Le 24/11/2022 à 14:37, Johannes Paul a
écrit :<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div>Hello Even,
<div dir="auto">Thanks for your reply, i did notice that,
however libkdu_a82R.so is not generated at kakadu
compilation.</div>
<div dir="auto">I only get libkdu_v82R.so and libkdu.a</div>
<div dir="auto">Rgds,</div>
<div dir="auto">Johannes </div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Le jeu. 24 nov. 2022 à
14:14, Even Rouault <<a href="mailto:even.rouault@spatialys.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">even.rouault@spatialys.com</a>>
a écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The
value of KDU_AUX_LIBRARY is wrong. See <br>
<a href="https://gdal.org/development/building_from_source.html#cmdoption-arg-KDU_AUX_LIBRARY" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://gdal.org/development/building_from_source.html#cmdoption-arg-KDU_AUX_LIBRARY</a><br>
<br>
It should be
-DKDU_AUX_LIBRARY="${INSTALLDIR}"/lib/libkdu_a82R.so"<br>
<br>
Even<br>
<br>
Le 24/11/2022 à 10:35, Johannes Paul a écrit :<br>
> Hello,<br>
><br>
> I'm having trouble compiling GDAL 3.6.0 on Centos7
with JP2KAK driver <br>
> using Kakadu 8.2.<br>
><br>
> I'm following the below instructions to compile KDU<br>
> <a href="https://trac.osgeo.org/gdal/wiki/JP2KAK" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://trac.osgeo.org/gdal/wiki/JP2KAK</a><br>
> And I'm using the following cmake options to compile
GDAL<br>
> -DGDAL_USE_KDU=ON -DKDU_INCLUDE_DIR="${INSTALLDIR}" <br>
> -DKDU_LIBRARY="${INSTALLDIR}"/lib/libkdu_v82R.so <br>
>
-DKDU_AUX_LIBRARY="${INSTALLDIR}"/lib/libkdu.a -DGDAL_ENABLE_DRIVER_JP2KAK:BOOL=ON<br>
><br>
> Everything goes fine until Linking CXX shared library
libgdal.so<br>
> where I get multiple errors type
jp2kakdataset.cpp:(.text+0x396): <br>
> undefined reference to `kdu_supp...<br>
><br>
> I've noticed the issue has already been addressed,
unfortunately it <br>
> does not solve my problem ...<br>
> <a href="https://github.com/OSGeo/gdal/issues/4306" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/OSGeo/gdal/issues/4306</a><br>
><br>
> Thanks for your help<br>
> Johannes<br>
><br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">gdal-dev@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
-- <br>
<a href="http://www.spatialys.com" rel="noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">http://www.spatialys.com</a><br>
My software is free, but my time generally not.<br>
<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
<pre cols="72">--
<a href="http://www.spatialys.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</blockquote></div>