[gdal-dev] Compilation error with JP2KAK driver

Johannes Paul johannespaul92 at gmail.com
Fri Nov 25 00:43:04 PST 2022


Ok I finally managed to get GDAL 3.6.0 compiled with JP2KAK driver v8.2.
Indeed my Kakadu complation was incomplete.
For the record, in addition to the following instructions
https://trac.osgeo.org/gdal/wiki/JP2KAK I had to :
- install java-openjdk-devel
- set JAVA_HOME environment variable
- After building subtree *coresys* &  *apps*, subtree *managed* must be
built (cd managed/make; make -f Makefile-Linux-x86-64-gcc)
Then I get my libkdu_a82R.so generated for the GDAL -DKDU_AUX_LIBRARY cmake
option.
Thanks!

On Thu, 24 Nov 2022 at 14:42, Even Rouault <even.rouault at spatialys.com>
wrote:

> Refer to Kakadu docs & support for that. There's definitely a way of
> generating it, but Kakadu build system is .... ahem ... "particular"
> Le 24/11/2022 à 14:37, Johannes Paul a écrit :
>
> Hello Even,
> Thanks for your reply, i did notice that, however libkdu_a82R.so is not
> generated at kakadu compilation.
> I only get libkdu_v82R.so and libkdu.a
> Rgds,
> Johannes
>
> Le jeu. 24 nov. 2022 à 14:14, Even Rouault <even.rouault at spatialys.com> a
> écrit :
>
>> The value of KDU_AUX_LIBRARY is wrong. See
>>
>> https://gdal.org/development/building_from_source.html#cmdoption-arg-KDU_AUX_LIBRARY
>>
>> It should be -DKDU_AUX_LIBRARY="${INSTALLDIR}"/lib/libkdu_a82R.so"
>>
>> Even
>>
>> Le 24/11/2022 à 10:35, Johannes Paul a écrit :
>> > Hello,
>> >
>> > I'm having trouble compiling GDAL 3.6.0 on Centos7 with JP2KAK driver
>> > using Kakadu 8.2.
>> >
>> > I'm following the below instructions to compile KDU
>> > https://trac.osgeo.org/gdal/wiki/JP2KAK
>> > And I'm using the following cmake options to compile GDAL
>> > -DGDAL_USE_KDU=ON -DKDU_INCLUDE_DIR="${INSTALLDIR}"
>> > -DKDU_LIBRARY="${INSTALLDIR}"/lib/libkdu_v82R.so
>> >
>> -DKDU_AUX_LIBRARY="${INSTALLDIR}"/lib/libkdu.a -DGDAL_ENABLE_DRIVER_JP2KAK:BOOL=ON
>> >
>> > Everything goes fine until Linking CXX shared library libgdal.so
>> > where I get multiple errors type jp2kakdataset.cpp:(.text+0x396):
>> > undefined reference to `kdu_supp...
>> >
>> > I've noticed the issue has already been addressed, unfortunately it
>> > does not solve my problem ...
>> > https://github.com/OSGeo/gdal/issues/4306
>> >
>> > Thanks for your help
>> > Johannes
>> >
>> > _______________________________________________
>> > gdal-dev mailing list
>> > gdal-dev at lists.osgeo.org
>> > https://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>> --
>> http://www.spatialys.com
>> My software is free, but my time generally not.
>>
>> -- http://www.spatialys.com
> My software is free, but my time generally not.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20221125/987df4c5/attachment.htm>


More information about the gdal-dev mailing list