I would like to use Google Earth in one of my cross platform C++ applications, and the only way I can see that would allow me to integrate it nicely into my GUI and interface to it usin开发者_StackOverflowg it's Javascript API would be using it as an NPAPI plugin. Are there any libraries that make interfacing/integrating with these plugins easy, or any tutorials that describe the process?
You could embed gecko (mozilla) in order to display any Internet plugin :
https://developer.mozilla.org/en/Gecko_Embedding_Basics
It s cross platform, though it's not always easy to embed depending what UI library you are using (I had some problems with Qt 3.3 and macosx in the past...).
You could also implement it ( I have done it in the past), it s around 2-3k c code line. It s not easy because lot of the stuff is not well documented and very platform dependant. Also it's evolving all the time (Gecko source is a good start for that).
精彩评论