Libkml is a library written in C ++. It can be used on Linux Mac OS X and Windows. The following describes how to compile libkml on Windows.
Download libkml, decompress it, and use vs2008 to open libkml. sln under msvn under the libkml-1.2.0 directory. However, directly compiling the libkmlbase project in this project fails because libkml depends on the libexpat library.
The libexpat library is an open-source library for XML parsing. The homepage is
Http://expat.sourceforge.net/
Is:
Http://sourceforge.net/project/showfiles.php? Group_id = 10127
We can download expat_win32, which is a well-prepared installation program, saving the trouble of compiling your own code.
Download expat_win32 and install the library.
After installation, set the option for vs2008.
In vs2008, select Tools-> options-> projects and solutions-> VC ++, select the inclusion file, and add installdir \ source \ Lib under the installation directory of expat, then, set the library file, add the installdir \ bin directory under the installation directory of expat, and OK.
Recompile libkmlbase.
Then, the libkmlconvenience, libkmldom, libkmlengine, libkmlregionator, and libkmlxsd can be compiled in sequence.