Skip to content

MRTKLIB: Modernized RTKLIB for Next-Generation GNSS

MRTKLIB is a completely modernized, thread-safe, and modularized C11 library for standard and precise GNSS positioning.

It is designed to overcome the architectural limitations of the original legacy RTKLIB, providing a robust foundation for next-generation GNSS applications.

  • Getting Started


    Build from source and run your first positioning solution in minutes.

    Installation

  • CLI Reference


    Learn the mrtk unified command-line interface and its subcommands.

    CLI Guide

  • Configuration


    Configure positioning modes, constellations, and correction sources via TOML.

    Configuration Guide

  • Reference


    Full configuration options reference with all available parameters.

    Config Options


Key Features

Architectural Overhauls

  • Thread-Safe Designmrtk_ctx_t context structure replaces global variables, enabling parallel processing
  • POSIX & C11 Pure — No Win32 API; fully portable across Linux, macOS (Apple Silicon), and embedded ARM/RISC-V
  • Modern Build System — Unified CMake with find_package(LAPACK) for hardware-accelerated matrix operations
  • Domain-Driven Layout — Source organized into src/core/, src/pos/, src/rtcm/, src/models/, etc.

QZSS Grand Integration

MRTKLIB unifies the fragmented QZSS augmentation ecosystem into a single, conflict-free library:

Component Description Status
MALIB MADOCA-PPP structural base (directory layout, threading, streams) ✅ Integrated
MADOCALIB PPP/PPP-AR engine, L6E SSR decoder, L6D ionospheric decoder ✅ Integrated
CLASLIB CLAS PPP-RTK, VRS-RTK, CSSR decoder ✅ Integrated

Positioning Modes

Mode Post-Processing Real-Time
SPP (Single Point) ✅ ✅
PPP (Precise Point) ✅ ✅
PPP-AR (Ambiguity Resolution) ✅ ✅
PPP-AR + Ionosphere ✅ ✅
PPP-RTK (CLAS) ✅ ✅
VRS-RTK (CLAS) ✅

Quick Start

Bash
# Build
cmake --preset default
cmake --build build

# Post-processing (PPP)
mrtk post -k conf/madocalib/rnx2rtkp.toml obs.obs nav.nav correction.l6

# Real-time positioning (CLAS PPP-RTK)
mrtk run -s -o conf/claslib/rtkrcv.toml

See the Installation Guide for detailed build instructions.


License

MRTKLIB is licensed under the BSD 2-Clause License.

Upstream components (MALIB, MADOCALIB, CLASLIB, GSILIB) are each licensed under BSD 2-Clause by their respective authors (JAXA, TOSHIBA, Cabinet Office, Lighthouse Technology & Consulting, Mitsubishi Electric, and the Geospatial Information Authority of Japan).