libkml

Install command:
brew install libkml

Library to parse, generate and operate on KML

https://github.com/libkml/libkml

License: BSD-3-Clause

Development: Pull requests

Formula JSON API: /api/formula/libkml.json

Formula code: libkml.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 1.3.0

Revision: 1

Depends on:

minizip 1.4 C library for zip/unzip via zLib
uriparser 1.0.3 URI parsing library (strictly RFC 3986 compliant)

Depends on when building from source:

boost 1.92.0 Collection of portable C++ source libraries
cmake 4.5.1 Cross-platform make

Uses from macOS: curl, expat

libkml uses boost headers. To develop with libkml, install boost.

GitHub Packages downloads:

Last 30 days33,873
Downloads1,359,328
Analytics install events (30 days)2,366
Downloads / install events (30 days)14.3×

Source: GitHub Packages, fetched 2026-11-20T00:56:35Z. Analytics dates: 2026-10-21 to 2026-11-20. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs2,3644,90227,131
Installs (--HEAD)224
Installs on Request15111
Build Errors0