Hi all,
I just uploaded it right here:
https://github.com/OpenCPN/OpenCPN/tree/KMLOverlay
Here are some directions for building it:
[1] First, it require libkml (obviously)
Download it here
Downloads - libkml - a KML library written in C++ with bindings to other languages - Google Project Hosting
Extract it
and build the solution.
[2] There are some third party library embedded inside (expat, zlib, minizip, uriparser) They are already built by
Google, but unfortunately with VC2005. They are required for next step.
You'll find these library built with VC2010 here
Issue 139 - libkml - lib file to support run libkml example in vs 2008 - a KML library written in C++ with bindings to other languages - Google Project Hosting
Download them three, you'll need it below.
[3] Now, let's build the plugin
- Resync your cmake config. Some variables are not set (sorry, I created Findlibkml.cmake from scratch and dunno how to find these libs auto-magically for Windows - if ever possible -. GNU/Linux users will not face this problem. Switch to GNU/Linux, it's way better ;-) ) so you'll have to fill them by hand (Use cmake GUI)
Here are the values (replace ${PATH_TO_LIBKML} with path from step [1] and ${PATH_TO_EXTRA} with path from step [2]):
libkml_KML_INCLUDE_DIR = ${PATH_TO_LIBKML}/src
libkml_BASE_LIBRARY = ${PATH_TO_LIBKML}/msvc/Release/libkmlbase.lib
libkml_DOM_LIBRARY = ${PATH_TO_LIBKML}/msvc/Release/libkmldom.lib
libkml_ENGINE_LIBRARY = ${PATH_TO_LIBKML}/msvc/Release/libkmlengine.lib
libkml_BOOST_INCLUDE_DIR = ${PATH_TO_LIBKML}/third_party/boost_1_34_1
libkml_MINIZIP_LIBRARY = ${PATH_TO_EXTRA}/minigzip-2010.lib
libkml_ZLIB_LIBRARY = ${PATH_TO_EXTRA}/zlib1-2010.lib
libkml_URIPARSER_LIBRARY = ${PATH_TO_EXTRA}/uriparser-2010.lib
libkml_EXPAT_LIBRARY = ${PATH_TO_LIBKML}/third_party/expat.win32/libexpat.lib
Now build the plugin and enjoy!
GNU/Linux users. Just download the source to your codebase. Install libkml-devel from your distro. Run make and it should just
work.
Warning Fedora users: libkml-devel lack one dependency (boost-devel) You'll have to install it as well. Bug opened. I also sent patches to upgrade to libkml-1.2.0 I hope we have it soon (maintainer contacted, he said he would do it this week-end) You can easily install libkml 1.2.0 with my patches + spec. See bugzilla for reference.
PS: Pavel, can you build the plugin with your solution and send it here (or directly to me so I can replace mine at URL above) I'm trying to install VC2010 on my VM.
Regards.
Jean-Eudes