[gdal-dev] building with libkea should use kea-config --hdfincludes

Vincent Schut schut at sarvision.nl
Tue Mar 31 01:55:52 PDT 2015


Hi,

I'm building gdal (svn trunk, updated this morning) on a debian (testing) server with libkea (own build). Libkea uses hdf5, and debian put's its hdf5 include files in /usr/include/hdf5/serial. Gdal build fails on libkea with:

Entering directory '/usr/local/src/gdal/frmts/kea'
/bin/bash /usr/local/src/gdal/libtool --mode=compile --tag=CXX g++ -I/usr/local/src/gdal/port -I/usr/local/src/gdal/gcore -I/usr/local/src/gdal/alg -I/usr/local/src/gdal/ogr -I/usr/local/src/gdal/ogr/ogrsf_frmts -g -O2  -Wall -Wunused-parameter  -I/usr/local/include   -DOGR_ENABLED -I/usr/local/src/gdal/port  -DGDAL_COMPILATION -c -o ../o/keaband.lo keaband.cpp
libtool: compile:  g++ -I/usr/local/src/gdal/port -I/usr/local/src/gdal/gcore -I/usr/local/src/gdal/alg -I/usr/local/src/gdal/ogr -I/usr/local/src/gdal/ogr/ogrsf_frmts -g -O2 -Wall -Wunused-parameter -I/usr/local/include -DOGR_ENABLED -I/usr/local/src/gdal/port -DGDAL_COMPILATION -c keaband.cpp  -fPIC -DPIC -o ../o/.libs/keaband.o
In file included from keadataset.h:35:0,
                  from keaband.h:35,
                  from keaband.cpp:31:
/usr/local/include/libkea/KEAImageIO.h:38:19: fatal error: H5Cpp.h: No such file or directory
  #include "H5Cpp.h"
                    ^
compilation terminated.
../../GDALmake.opt:572: recipe for target '../o/keaband.lo' failed


H5Cpp.h is in /usr/include/hdf5/serial, and that folder is given by kea-config --hdfincludes:

kea-config --hdfincludes
/usr/include/hdf5/serial

Shouldnt gdal use that output from kea-config to pass to the compile command as -I (and maybe also kea-config --hdflibs)?


Best,
Vincent.


More information about the gdal-dev mailing list