[gdal-dev] Compilation error with JP2KAK driver

Even Rouault even.rouault at spatialys.com
Thu Nov 24 05:14:27 PST 2022


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.



More information about the gdal-dev mailing list