[gdal-dev] problem with gdal 1.9 and libkml 1.2

Dmitry Baryshnikov polimax at mail.ru
Tue Apr 3 03:39:51 EDT 2012


03.04.2012 11:08, Massimo Costantini ???????:
> Hi,
>
> I try to compile gdal 1.9.0 with libkml 1.2.0 but I have some problem. 
> G++ write out this error:
>
> ogrlibkmldatasource.cpp: In member function 'int 
> OGRLIBKMLDataSource::OpenKml(const char*, int)':
> ogrlibkmldatasource.cpp:817: warning: converting to non-pointer type 
> 'int' from NULL
> ogrlibkmldatasource.cpp: In member function 'int 
> OGRLIBKMLDataSource::OpenKmz(const char*, int)':
> ogrlibkmldatasource.cpp:914: warning: converting to non-pointer type 
> 'int' from NULL
> ogrlibkmldatasource.cpp: In member function 'OGRErr 
> OGRLIBKMLDataSource::DeleteLayerKml(int)':
> ogrlibkmldatasource.cpp:1536: error: 'class kmldom::Container' has no 
> member named 'DeleteFeatureAt'
> ogrlibkmldatasource.cpp: In member function 'OGRErr 
> OGRLIBKMLDataSource::DeleteLayerKmz(int)':
> ogrlibkmldatasource.cpp:1597: error: 'class kmldom::Container' has no 
> member named 'DeleteFeatureAt'
> ogrlibkmldatasource.cpp: In member function 'void 
> OGRLIBKMLDataSource::SetStyleTable2Kml(OGRStyleTable*)':
> ogrlibkmldatasource.cpp:1848: error: 'class kmldom::Document' has no 
> member named 'DeleteStyleSelectorAt'
> make[3]: *** [../o/ogrlibkmldatasource.lo] Error 1
> make[3]: Leaving directory `/home/user/gdal-1.9.0/ogr/ogrsf_frmts/libkml'
> make[2]: *** [libkml-target] Error 2
> make[2]: Leaving directory `/home/user/gdal-1.9.0/ogr/ogrsf_frmts'
> make[1]: *** [sublibs] Error 2
> make[1]: Leaving directory `/home/user/gdal-1.9.0/ogr'
> make: *** [ogr-target] Error 2
>
> Someone can tell me how resolve?
>
>
> Massimo Costantini
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
As I know, libkml 1.3 is needed. By now the 1.3 version is on trunk 
only. You have to get source code from svn and compile it before 
building GDAL with libkml

Regards,
     Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120403/8648f0b9/attachment.html


More information about the gdal-dev mailing list