Saw that configure.in uses kea-config --cflags, which only results in the
direct kea include dir being included. Here's a patch which uses --includes and
--hdfincludes, which seems to work for me (need to run autogen.sh afterwards).
Vincent.
On 03/31/2015 10:55 AM, Vincent Schut wrote:
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.
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Index: configure.in
===================================================================
--- configure.in (revision 28826)
+++ configure.in (working copy)
@@ -1810,7 +1810,7 @@
HAVE_KEA=yes
KEA_LIB="`$KEA_CONFIG --libs`"
- KEA_INC="`$KEA_CONFIG --cflags`"
+ KEA_INC="-I`$KEA_CONFIG --includes` -I`$KEA_CONFIG --hdfincludes`"
AC_MSG_RESULT([yes])
fi
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev