<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
03.04.2012 11:08, Massimo Costantini написал:
<blockquote
cite="mid:CAO_q5tsfo3p2pWko09b8P2VusbFGGVV_1i2E3LsRUtGrw6SRvg@mail.gmail.com"
type="cite">Hi,<br>
<br>
I try to compile gdal 1.9.0 with libkml 1.2.0 but I have some
problem. G++ write out this error:<br>
<br>
ogrlibkmldatasource.cpp: In member function 'int
OGRLIBKMLDataSource::OpenKml(const char*, int)':<br>
ogrlibkmldatasource.cpp:817: warning: converting to non-pointer
type 'int' from NULL<br>
ogrlibkmldatasource.cpp: In member function 'int
OGRLIBKMLDataSource::OpenKmz(const char*, int)':<br>
ogrlibkmldatasource.cpp:914: warning: converting to non-pointer
type 'int' from NULL<br>
ogrlibkmldatasource.cpp: In member function 'OGRErr
OGRLIBKMLDataSource::DeleteLayerKml(int)':<br>
ogrlibkmldatasource.cpp:1536: error: 'class kmldom::Container' has
no member named 'DeleteFeatureAt'<br>
ogrlibkmldatasource.cpp: In member function 'OGRErr
OGRLIBKMLDataSource::DeleteLayerKmz(int)':<br>
ogrlibkmldatasource.cpp:1597: error: 'class kmldom::Container' has
no member named 'DeleteFeatureAt'<br>
ogrlibkmldatasource.cpp: In member function 'void
OGRLIBKMLDataSource::SetStyleTable2Kml(OGRStyleTable*)':<br>
ogrlibkmldatasource.cpp:1848: error: 'class kmldom::Document' has
no member named 'DeleteStyleSelectorAt'<br>
make[3]: *** [../o/ogrlibkmldatasource.lo] Error 1<br>
make[3]: Leaving directory
`/home/user/gdal-1.9.0/ogr/ogrsf_frmts/libkml'<br>
make[2]: *** [libkml-target] Error 2<br>
make[2]: Leaving directory `/home/user/gdal-1.9.0/ogr/ogrsf_frmts'<br>
make[1]: *** [sublibs] Error 2<br>
make[1]: Leaving directory `/home/user/gdal-1.9.0/ogr'<br>
make: *** [ogr-target] Error 2<br>
<br>
Someone can tell me how resolve?<br>
<br>
<br>
Massimo Costantini<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
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<br>
<br>
Regards,<br>
Dmitry<br>
</body>
</html>