Compile libkml in Windows

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.