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.3.2 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.4.5 Cross-platform make

Uses from macOS: curl, expat

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

GitHub Packages downloads:

Last 30 days32,183
Downloads1,334,813
Analytics install events (30 days)2,232
Downloads / install events (30 days)14.4×

Source: GitHub Packages, fetched 2026-10-31T09:47:44Z. Analytics dates: 2026-10-01 to 2026-10-31. 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,2324,38127,882
Installs (--HEAD)002
Installs on Request312117
Build Errors0