Dear Even,
thanks for pointing me to https://trac.osgeo.org/gdal/changeset/31517, I
will use this. Maybe it would help to avoid confusion to reflect the
need to set
CXXFLAGS="-DKDU_MAJOR_VERSION=7 -DKDU_MINOR_VERSION=7 in the ./configure
--help message. I was missing this info.
Thanks a lot again,
André
On 02/12/2016 10:03 AM, Even Rouault wrote:
Andre,
The preferred way to include all the
Kakadu API's is to link against
>both libkdu_v77R.o and libkdu_a77R.o, where the latter is built by the
"managed" makefiles.
>Anyway, it may be that all you have to do is add
"avx2_region_deocmpressor.o" (and possibly
>"avx2_region_compositor.o") to the GDAL build environment.
Yes, the kakadu support would probably need to be revisited and linking to a
single file would be better (although that its changing name, see the v77, is
kind of annoying...)
Anyway since GDAL 2.0, you need to pass explicitly the Kakadu version by
defining CXXFLAGS like CXXFLAGS="-DKDU_MAJOR_VERSION=7 -DKDU_MINOR_VERSION=7"
./configure [other_options]
But Kakadu v7.7 support is in trunk only : you likely need to apply
https://trac.osgeo.org/gdal/changeset/31517
I checked the fmts/o directory and copied all *.o files from kakadu into
this directory. Then, called make again which ran without errors. When
using python, I was able to read a jpeg200 image with gdal. However,
this worked only with 2.0.2, using the version from github, the gdal
module was missing from python.
Perhaps the GDAL Python bindings you use don't link to the GDAL library you
built manually ? You may have to play with LD_LIBRARY_PATH to point to your
GDAL libs.
So it seems there is a bug in the gdal build system when compiling with
kakadu 7.7.1
Kind Regards, André Hollstein
--
Dr. André Hollstein
Sektion 1.4 Fernerkundung
Tel.: +49 (0)331/288-28969
Fax: +49 (0)331/288-28969
E-Mail: [email protected]
___________________________________
Helmholtz-Zentrum Potsdam
Deutsches GeoForschungsZentrum GFZ
Stiftung des öff. Rechts Land Brandenburg
Telegrafenberg, 14473 Potsdam
Haus 17, Raum 20.23
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev