[gdal-dev] GDAL / libKml interaction causes app to crash
Clay, Bruce
bclay at ball.com
Thu Apr 2 17:13:29 EDT 2009
This question is most likely a problem with libkml. I did post a
message on the libkml forum as well. My apologies if you are subscribed
to both asnd getting this message twice.
I am working on an application that uses GDAL and libKml. Everything
was going fine until I added KmzFile::CreateFromKmlFilepath to create a
kmz file. The application crashes in GDAL space during start up while
registering the plugins. The only common link I can find is both
applications are using zlib and minizip. I downloaded the latest
version of zlib which appears to be the same one currently used by
libkml as well as GDAL. Even though I use zlibstat.lib in my
application I still get 15 unresolved externals. In the original setup
I linked in minizip.lib but minizip is only created as an executable in
the current version. Some of the unresolved externals are shohw at the
end of this message.
Is there a known work around to this problem?
Error 19 error LNK2019: unresolved external symbol _zipClose
referenced in function "public: __thiscall
kmlengine::ZlibImpl::~ZlibImpl(void)" (??1ZlibImpl at kmlengine@@QAE at XZ)
libkmlengine.lib
Error 20 error LNK2019: unresolved external symbol _unzClose
referenced in function "public: __thiscall
kmlengine::ZlibImpl::~ZlibImpl(void)" (??1ZlibImpl at kmlengine@@QAE at XZ)
libkmlengine.lib
Error 21 error LNK2019: unresolved external symbol
_unzGoToFirstFile referenced in function "public: static class
kmlengine::KmzFile * __cdecl kmlengine::KmzFile::OpenFromString(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(?OpenFromString at KmzFile@kmlengine@@SAPAV12 at ABV?$basic_string at DU?$char_t
raits at D@std@@V?$allocator at D@2@@std@@@Z) libkmlengine.lib
Bruce
This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090402/7655ef09/attachment.html
More information about the gdal-dev
mailing list